home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
mus
/
play
/
PlayGUIUpd.lha
/
PlayGUIUpd
/
PlayGUI
< prev
next >
Wrap
Text File
|
2000-10-18
|
89KB
|
3,713 lines
G4C;(c) PlayGUI by Richard Kapp 1999-2000 ; MUST BE IN THE FIRST(!) LINE
;Version 3.0
;Getting started
WINBIG 451 423 275 116 "PLAYGUI V.3.a (c) by Richard Kapp 1999-2000"
wintype 01001000
WINFONT PlayGUI.font 8 000
;Routinen
xROUTINE ENDE
if $THEME = YES
CLI 'C:run >NIL: $PLAY16PATH $TQUITSOUND'
gosub PlayGUI ENDE2
elseif $THEME = NO
CLI 'C:run >NIL: $PLAY16PATH $QUITSOUND'
gosub PlayGUI ENDE2
endif
xROUTINE ENDE2
if $AUTOSAVE = YES
gosub PathConfig SavePaths
endif
assign Skins: remove
guiquit ShortInfo
guiquit SYSInfo
guiquit MiniPlay
guiquit PGAbout
guiquit Voreinstellung
guiquit OptionConfig
guiquit StartupConfig
guiquit PathConfig
guiquit P16Config
guiquit SetVolume
guiquit Themes
guiquit QuickMenu
guiquit Preview
guiquit ThemeCreate
guiquit ShowPattern
guiquit ShowSkin
guiquit ChangeLoop
guiquit PlugSet
guiquit Sambuff
guiquit Createprogress
guiquit mpgconfig
guiquit PlayGUI
guiquit aboutstart
guiquit GMPlayconfig
freeimage haut
freeimage Barmod
freeimage BarSam
freeimage BarOpt
freeimage BarVol
freeimage GuiPattern
freeimage ab
freeimage frage
freeimage mpgfx
freeimage optgfx
freeimage mpegagfx
freeimage P16gfx
freeimage configgfx
freeimage quickgfx
freeimage modinfogfx
freeimage themesgfx
freeimage startupgfx
freeimage plugingfx
freeimage midigfx
xROUTINE choice
ezReq "No mod to play!" "Shut up!|Select a mod or mpg" what
if $what = 1
gosub PlayGUI Hopp
else
gosub if $STARTABOUT = OFF PlayGUI SelectMod
endif
xROUTINE SelectMod
ReqFile 0 0 200 400 "Choose a module..." LOAD module $MODPATH
ifexists FILE $module
extract module FILE mody
update PlayGUI 1 '$mody'
update PlayGUI 2 'Select mod'
a = loaded
else
ezreq "No mod, mpg or midi selected" "I know!" jep
endif
;Load new skin
xROUTINE NeuHaut
ReqFile 0 0 200 -30 "Choose the skin directory..." DIR SKINSELECT #PlayGUI:Skins
if $SKINSELECT > ''
gosub PlayGUI Wechsel
endif
xROUTINE Wechsel
Assign Skins: $SKINSELECT
IfExists FILE Skins:main.iff
THEME = NO
gosub PlayGUI Wechsel2
else
ezreq "Cannot find skin.." "Grrr!" grrr
endif
xROUTINE Wechsel2
freeimage BarVol
freeimage BarOpt
freeimage BarSam
freeimage BarMod
freeimage haut
loadimage Skins:main.iff haut Workbench
loadimage Skins:mod_bar BarMod Workbench
loadimage Skins:sample_bar BarSam Workbench
loadimage Skins:option_bar BarOpt Workbench
loadimage Skins:volume_bar BarVol Workbench
ChangeImage PlayGUI 4 -1 -1 haut
ChangeImage PlayGUI 5 -1 -1 BarMod
ChangeImage PlayGUI 6 -1 -1 BarSam
ChangeImage PlayGUI 7 -1 -1 BarOpt
ChangeImage PlayGUI 8 -1 -1 BarVol
redraw PlayGUI
extract SKINSELECT PATH skiny
if $a = loaded
and $stop = na
update PlayGUI 1 '$mody'
update PlayGUI 2 'Playing mod'
update PlayGUI 3 ''
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
*typ = $$REXXRET
update PlayGUI 3 "$*typ"
else
update PlayGUI 3 ''
update PlayGUI 2 'Selected Skin'
update PlayGUI 1 '$skiny'
endif
xROUTINE Versteck
if $but = ja
Setgad PlayGUI 5/8 HIDE
Setgad PlayGUI 1/3 HIDE
redraw PlayGUI
but = nein
elseif $but = nein
ezreq "There's nothing to hide!" "Sure" sure
endif
xROUTINE Zeig
if $but = nein
Setgad PlayGUI 5/8 SHOW
Setgad PlayGUI 1/3 SHOW
redraw PlayGUI
but = ja
elseif $but = ja
ezreq "There's nothing to show!" "Sure" sure
endif
;SliderBox
SQUARE 20 71 104 20 0 FILL
xonload
Set help on
extract PlayGUI guipath PlayGUIpath
ifexists assign PlayGUI: ;try to self-locate
else
assign PlayGUI: $PlayGUIpath
endif
;DEFAULT VARIABLES----------------------------
zeit = 0
help = off
c = hippyend
stop = ja
stopmpg = ja
stopmidi = ja
stumm = laut
pvol = NO
vol = 100
vol2 = 50
short = nope
but = ja
GuiPattern = PlayGUI:SYS/Patterns/PGpattern
STARTSOUND = PlayGUI:SYS/Sounds/SoundStart
QUITSOUND = PlayGUI:SYS/Sounds/SoundEnd
HIPPOPATH = RAM:
PLAY16PATH = C:Play16
MODPATH = RAM:
SKINSELECT = PLAYGUI:SKINS/Standard/
SAMPLEPATH = RAM:
LAUNCHPATH = RAM:
PLONEPATH = PLAYGUI:PlugIns/Plone/
SKINNERPATH = PLAYGUI:PlugIns/Skinner/
SCOPEPATH = RAM:
COPYPATH = RAM:
COPYPATH2 = RAM:
MPGCOPYPATH = RAM:
MIDICOPYPATH = RAM:
YAMPATH = YAM:yam
BROWSERPATH = RAM:
AUTOPLAY = NO
AUTOSAVE = NO
PLONESTART = NO
STARTMODINFO = NO
P16LOOP = 1
P16FILTER = OFF
THEME = NO
THEMEPATH = PlayGUI:Themes/
TQUITSOUND = PlayGUI:SYS/Sounds/SoundEnd
TSTARTSOUND = PlayGUI:SYS/Sounds/SoundStart
SAMAUTO = OFF
OUTPUT = Paula8
SAMPLEBUFFER = 65536
MPEGAPATH = c:mpega
freq = 2
quality = 1
number = 20009
audiofilter = 0
audiobuffer = 1
buffersize = 16
priority = 0
MODSTARTUP = OFF
STARTMOD = OFF
STARTMODULE = RAM:
STARTABOUT = ON
GMPLAYPATH = RAM:
gmfreq = 28867
gmvol = 64
gmbuffer = 16
gmpoly = 64
gmpriority = 0
gmfilter = NOFILTER
playtimer = yes
;LOAD PLAYGUI CONFIGURATION
;--------------------------
ifexists file PlayGUI:SYS/PlayGUIconfig
guiload PLAYGUI:SYS/PlayGUIconfig
update PlayGUI 2 'WELCOME TO'
update PlayGUI 1 'PlayGUI v.3.0!'
update PlayGUI 3 '- made by R. Kapp'
else
ezreq "Cannot find config - Please configure PlayGUI!" "I will do!" do
update PlayGUI 2 'WELCOME TO'
update PlayGUI 1 'PlayGUI v.3.0!'
update PlayGUI 3 '- made by R. Kapp'
endif
;Graphiken laden
loadimage PLAYGUI:SYS/Images/Start.iff ab Workbench
loadimage PlayGUI:SYS/Images/Req.iff frage Workbench
loadimage PlayGUI:SYS/Images/mp3.iff mpgfx Workbench
loadimage PLAYGUI:SYS/Images/optiongfx.iff optgfx Workbench
loadimage PLAYGUI:SYS/Images/mpegagfx.iff mpegagfx Workbench
loadimage PLAYGUI:SYS/Images/p16gfx.iff P16gfx Workbench
loadimage PLAYGUI:SYS/Images/configgfx.iff configgfx Workbench
loadimage PLAYGUI:SYS/Images/quickgfx.iff quickgfx Workbench
loadimage PLAYGUI:SYS/Images/startupgfx.iff startupgfx Workbench
loadimage PLAYGUI:SYS/Images/themesgfx.iff themesgfx Workbench
loadimage PLAYGUI:SYS/Images/modinfogfx.iff modinfogfx Workbench
loadimage PLAYGUI:SYS/Images/plugingfx.iff plugingfx Workbench
loadimage PLAYGUI:SYS/Images/midigfx.iff midigfx Workbench
; Abfrage, ob ein MOD gestartet werden soll
;------------------------------------------
If $STARTMOD = ON
gosub PlayGUI startmodfrage
elseif $STARTMOD = OFF
gosub PlayGUI aboutabfrage
endif
xROUTINE startmodfrage
if $STARTABOUT = OFF
gosub PlayGUI Startmodcont
else
gosub PlayGUI aboutabfrage
endif
xROUTINE Startmodcont
ifexists FILE $STARTMODULE
c = hippy
a = loaded
stop = na
extract STARTMODULE FILE *mody
Update PlayGUI 300 '{'
CLI 'C:run >NIL: $HIPPOPATH hide $STARTMODULE'
update PlayGUI 1 '$*mody'
update PlayGUI 2 "Playing mod"
gosub PlayGUI Themeabfrage
else
ezreq "Can't find startmod!" "Okay" ok
gosub PlayGUI Themeabfrage
endif
xROUTINE aboutabfrage
if $STARTABOUT = ON
CLI 'C:run >NIL: $PLAY16PATH PlayGUI:SYS/introsound.iff'
guiopen aboutstart
gosub PlayGUI Themeabfrage
elseif $STARTABOUT = OFF
gosub PlayGUI Themeabfrage
endif
;--------------------------
;LOAD THEME
;--------------------------
xROUTINE Themeabfrage
if $THEME = YES
gosub PlayGUI ThemeAb
elseif $THEME = NO
gosub PlayGUI NormalInit
endif
xROUTINE ThemeAb
ifexists DIR $THEMEPATH
gosub PlayGUI ThemeLoad
else
ezreq "Cannot find theme!" "ok" ok
gosub PlayGUI NormalInit
endif
xROUTINE ThemeLoad
assign Themes: $THEMEPATH
ifexists FILE Themes:Pattern/PGPattern
loadimage Themes:Pattern/PGpattern GuiPattern Workbench
gosub PlayGUI SoundStartNext
else
ezreq "Cannot find theme elements!" "Ok" ok
gosub PlayGUI NormalInit
endif
xROUTINE SoundStartNext
ifexists FILE Themes:Sounds/SoundStart
gosub PlayGUI SoundQuitNext
else
ezreq "Cannot find start sound!" "Ok" ok
gosub PlayGUI NormalInit
endif
xROUTINE SoundQuitNext
ifexists FILE Themes:Sounds/SoundEnd
gosub PlayGUI SkinNext
else
ezreq "Cannot find quit sound!" "Ok" ok
gosub PlayGUI NormalInit
endif
xROUTINE SkinNext
ifexists FILE Themes:Skin/main.iff
assign Skins: Themes:Skin/
;loadimage PLAYGUI:SYS/Start.iff ab Workbench
gosub PlayGUI LadeThemeSkin
else
ezreq "Cannot find skin!" "Ok" ok
gosub PlayGUI NormalInit
endif
xROUTINE LadeThemeSkin
loadimage Skins:main.iff haut Workbench
loadimage Skins:mod_bar BarMod Workbench
loadimage Skins:sample_bar BarSam Workbench
loadimage Skins:option_bar BarOpt Workbench
loadimage Skins:volume_bar BarVol Workbench
gosub PlayGUI Init
xROUTINE NormalInit
ifexists FILE $GuiPattern
loadimage $GuiPattern GuiPattern Workbench
gosub PlayGUI StartUpInit
else
ezreq "Cannot find pattern! Loading default..." "Ok" ok
loadimage PlayGUI:SYS/Patterns/PGPattern GuiPattern Workbench
gosub PlayGUI StartUpInit
endif
IfExists DIRECTORY $SKINSELECT
assign Skins: $SKINSELECT
else
EzReq "Cannot find skin - Loading default..." "Really?" ok
assign Skins: PlayGUI:Skins/standard
EndIf
loadimage Skins:main.iff haut Workbench
loadimage Skins:mod_bar BarMod Workbench
loadimage Skins:sample_bar BarSam Workbench
loadimage Skins:option_bar BarOpt Workbench
loadimage Skins:volume_bar BarVol Workbench
gosub PlayGUI Init
xROUTINE Init
if $STARTMOD = ON
gosub PlayGUI PGInit
else
gosub PlayGUI themefrage
endif
xROUTINE themefrage
if $STARTABOUT = ON
gosub PlayGUI PGInit
else
gosub PlayGUI themeteil2
endif
xROUTINE themeteil2
if $THEME = YES
CLI 'C:run >NIL: $PLAY16PATH $TSTARTSOUND'
gosub PlayGUI PGInit
elseif $THEME = NO
CLI 'C:run >NIL: $PLAY16PATH $STARTSOUND'
gosub PlayGUI PGInit
endif
xROUTINE PGInit
GuiOpen PlayGUI
gosub PlayGUI StartUpInit
xROUTINE StartUpInit
If $PLONESTART = YES
gosub PlayGUI StartPloneNow
endif
If $STARTMODINFO = YES
gosub PlayGUI StartModInfo
endif
xROUTINE StartPloneNow
IfExists DIRECTORY $PLONEPATH
assign GUIPlone: $PLONEPATH
GuiLoad GUIPlone:Plone
else
ezreq "Cannot find Plone! Set the correct path first!" "Ok!" ok
endif
xROUTINE StartModInfo
short = yep
GuiOpen ShortInfo
IMAGE 0 0 haut
gadid 4
IMAGE 15 85 BarMod
gadid 5
IMAGE 153 22 BarSam
gadid 6
IMAGE 160 85 BarOpt
gadid 7
IMAGE 15 68 BarVol
gadid 8
BOX 0 0 275 116 out button
xROUTINE Hopp
stop = na
;SliderBox
SQUARE 20 71 104 7 0 FILL
XTIMER repeat 0:0:01 OFF
++zeit
;min = $(abs($zeit /60))
;sec = $($zeit -($min *60))
update PlayGUI 2 'Playing Time:$zeit sec'
if $short = yep
SendRexx HIPPOPLAYER 'GET CSPO'
*curr = $$REXXRET
update ShortInfo 15 "CURRENT POSITION: $*curr"
endif
gadid 200
;VOLUME-SLIDER
XHSLIDER 19 71 108 8 '' vol 0 64 64 ''
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER VOLUME=$vol
gosub PlayGUI VolMeter
elseif $d = Play16
gosub PlayGUI VolMeter
endif
xROUTINE VolMeter
if $vol = 0
update PlayGUI 3 "VOL:OFF"
DELAY 5
endif
if $vol > 0
update PlayGUI 3 "VOL:$vol ||"
DELAY 5
endif
if $vol >= 8
update PlayGUI 3 "VOL:$vol ||||"
DELAY 5
endif
if $vol >= 24
update PlayGUI 3 "VOL:$vol ||||||"
DELAY 5
endif
if $vol >= 30
update PlayGUI 3 "VOL:$vol ||||||||"
DELAY 5
endif
if $vol >= 36
update PlayGUI 3 "VOL:$vol ||||||||||"
DELAY 5
endif
if $vol >= 42
update PlayGUI 3 "VOL:$vol ||||||||||||"
DELAY 5
endif
if $vol >= 48
update PlayGUI 3 "VOL:$vol ||||||||||||||"
DELAY 5
endif
if $vol >= 54
update PlayGUI 3 "VOL:$vol ||||||||||||||||"
DELAY 5
endif
if $vol >= 60
update PlayGUI 3 "VOL:$vol ||||||||||||||||||"
DELAY 5
endif
if $vol = 64
update PlayGUI 3 "VOL:MAX |||||||||||||||||||||"
DELAY 5
endif
DELAY 50
update PlayGUI 3 "$*typ"
;PLAYGUIMENUS
xMenu 'PLAYGUI' 'About' '' 'a'
GuiOpen PGAbout
xMenu 'PLAYGUI' 'HELP' '' 'H'
ezreq 'Do you want the german or the english one?' 'German|English' sprache
if $sprache = 1
gosub PlayGUI Sprachwahld
else
gosub PlayGUI Sprachwahle
endif
xROUTINE Sprachwahld
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/PlayGUI.german'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xROUTINE Sprachwahle
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/PlayGUI.guide'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xROUTINE mini
guiclose PlayGUI
guiopen MiniPlay
xMenu 'PLAYGUI' 'Iconify' '' 'I'
setgad #this 55 ON ; show appicon
guiclose #this
xMenu 'PLAYGUI' 'MiniPlay' '' '-'
gosub PlayGUI mini
xAppIcon 10 10 :PlayGui PlayGui '' OFF
GadID 55
GuiOpen playgui
GuiScreen playgui FRONT
setgad #this 55 OFF ; hide appicon
xMenu 'PLAYGUI' 'SYSInfo' '' ''
guiopen SYSInfo
xMenu PLAYGUI BARLABEL '' ''
xMenu 'PLAYGUI' 'Quit' '' ''
gosub PlayGUI DASENDE
xMenu 'PLAYGUI' 'Quickquit' '' 'q'
if $AUTOSAVE = YES
gosub PathConfig SavePaths
endif
if $c = hippy
gosub PlayGUI QENDE
elseif $stopmpg = na
BreakTask $MPEGAPATH C
gosub PlayGUI ENDE
elseif $d = play16
BreakTask $PLAY16PATH C
gosub PlayGUI ENDE
elseif $stopmidi = na
BreakTask $GMPLAYPATH C
gosub PlayGUI ENDE
elseif $c = Hipppyend
gosub PlayGUI ENDE
else
gosub PlayGUI ENDE
endif
xROUTINE QENDE
CLI 'C:run >NIL: $HIPPOPATH quit'
if $THEME = YES
CLI 'C:run >NIL: $PLAY16PATH $TQUITSOUND'
gosub PlayGUI ENDE4
elseif $THEME = NO
CLI 'C:run >NIL: $PLAY16PATH $QUITSOUND'
gosub PlayGUI ENDE4
endif
xROUTINE ENDE4
freeimage haut
freeimage Barmod
freeimage BarSam
freeimage BarOpt
freeimage BarVol
freeimage GuiPattern
freeimage ab
freeimage frage
freeimage mpgfx
freeimage optgfx
freeimage mpegagfx
freeimage P16gfx
freeimage configgfx
freeimage quickgfx
freeimage modinfogfx
freeimage themesgfx
freeimage startupgfx
freeimage plugingfx
freeimage midigfx
assign Skins: remove
guiquit ShortInfo
guiquit SYSInfo
guiquit MiniPlay
guiquit PGAbout
guiquit Voreinstellung
guiquit OptionConfig
guiquit StartupConfig
guiquit PathConfig
guiquit P16Config
guiquit SetVolume
guiquit Themes
guiquit QuickMenu
guiquit Preview
guiquit ThemeCreate
guiquit ShowPattern
guiquit ShowSkin
guiquit ChangeLoop
guiquit PlugSet
guiquit Sambuff
guiquit Createprogress
guiquit mpgconfig
guiquit PlayGUI
guiquit aboutstart
guiquit GMPlayconfig
;OPTIONMENU
xMenu 'OPTIONS' 'Select new SKIN' '' 's'
GOSUB PlayGUI NeuHaut
xMenu 'OPTIONS' 'Save SKIN as default' '' ''
gosub PathConfig SavePaths
xMenu OPTIONS BARLABEL '' ''
xMenu 'OPTIONS' 'Buttons' 'Hide' ''
GOSUB PlayGUI Versteck
xMenu 'OPTIONS' 'Buttons' 'Show' ''
GOSUB PlayGUI Zeig
xMenu OPTIONS BARLABEL '' ''
xMenu 'OPTIONS' 'Launch' '' 'l'
ReqFile 0 0 200 400 "Choose a music-tool..." LOAD tool $LAUNCHPATH
CLI 'C:RUN >NIL: $tool'
xMENU 'OPTIONS' 'Choose Scope' '' 'y'
ReqFile 0 0 200 400 "Choose a scope..." LOAD scope $SCOPEPATH
CLI 'C:RUN >NIL: $scope'
xMENU OPTIONS BARLABEL '' ''
xMENU 'OPTIONS' 'Copy song to favourite dir' '' 'd'
if $a = loaded
or $m = loaded
or $gm = loaded
gosub PlayGUI ModCopylos
else
ezreq 'There is no mod in memory!' 'You are right!' righty
endif
XROUTINE ModCopylos
ezreq "Which path?" "MOD|MPG|MIDI|Cancel" art
if $art = 3
gosub PlayGUI midikopie
elseif $art = 1
gosub PlayGUI modkopie
elseif $art = 2
gosub PlayGUI mp3kopie
elseif $art = 0
endif
xROUTINE Modkopie
ifexists DIR $COPYPATH
CLI 'C:Copy $module to $COPYPATH'
ezReq 'Finished!' 'Good' good
else
ezreq "DIR not found!" "Fine!" fine
endif
xROUTINE mp3kopie
ifexists DIR $MPGCOPYPATH
CLI 'C:Copy $module to $MPGCOPYPATH'
ezReq 'Finished!' 'Good' good
else
ezreq "DIR not found!" "Fine!" fine
endif
xROUTINE midikopie
ifexists DIR $MIDICOPYPATH
CLI 'C:Copy $module to $MIDICOPYPATH'
ezReq 'Finished!' 'Good' good
else
ezreq "DIR not found!" "Fine!" fine
endif
xMENU 'OPTIONS' 'Copy to sample dir' '' ''
if $b = loaded
gosub PlayGUI SampleCopy
else
ezreq "There is no sample in memory!" "You are right!" righty
endif
XRoutine SampleCopy
ifexists FILE $sample
gosub PlayGUI SampleCopylos
else
ezreq "Sample not found!" "Ok" ok
endif
xROUTINE SampleCopylos
ifexists DIR $COPYPATH2
CLI 'C:Copy $sample to $COPYPATH2'
ezReq 'Finished!' 'Good' good
else
ezreq "DIR not found!" "Argh!" argh
endif
xMENU 'OPTIONS' 'LHA add song' '' ''
if $a = loaded
gosub PlayGUI ArchiveGo
else
ezreq "There's no MOD in memory!" "Sure!" sure
endif
XRoutine ArchiveGo
reqfile -1 -1 400 200 "Give path and filename for LHA archive" LOAD modarch RAM:
ifexists FILE C:LHA
CLI 'C:LHA -h a $modarch $module'
ezreq "Finished LHA adding!" "Goodygood!" goodygood
else
ezreq "You need LHA in C!" "Oh yes!" oh
endif
xMENU 'OPTIONS' 'Autoplay' 'ON' ''
AUTOPLAY = YES
xMENU 'OPTIONS' 'Autoplay' 'OFF' ''
AUTOPLAY = NO
xMenu 'OPTIONS' 'Show Playtime' 'ON' ''
playtimer = yes
xMenu 'OPTIONS' 'Show Playtime' 'OFF' ''
playtimer = no
xMENU 'MODINFO' 'INFO Window' '' '+'
short = yep
if $a = loaded
and $c = hippy
update ShortInfo 10 "NAME: $*mody"
update ShortInfo 11 "MODTYPE: $*typ"
update ShortInfo 12 "SIZE: $*size bytes"
if $*time = 0
update ShortInfo 13 "TIME: Not available"
else
update ShortInfo 13 "TIME: $*time seconds"
endif
if $*max = 0
update ShortInfo 14 "MAXIMAL POSITION: Not available"
else
update ShortInfo 14 "MAXIMAL POSITION: $*max"
endif
update ShortInfo 15 "CURRENT POSITION: $*curr"
endif
GOSUB PlayGUI AllInfo
xMenu MODINFO BARLABEL '' ''
xMENU 'MODINFO' 'Playtime' '' ''
if $a = loaded
and $c = hippy
GOSUB PlayGUI TimeInfo
else
ezreq "Play a mod first!" "Jep!" jep
endif
xMENU 'MODINFO' 'Modsize' '' ''
if $a = loaded
and $c = hippy
GOSUB PlayGUI SizeInfo
else
ezreq "Play a mod first!" "Jep!" jep
endif
xMENU 'MODINFO' 'Modtype' '' ''
if $a = loaded
and $c = hippy
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
*typ = $$REXXRET
update PlayGUI 3 "$*typ"
else
ezreq "Play a mod first!" "Jep!" jep
endif
xMENU 'MODINFO' 'Current Songposition' '' ''
if $a = loaded
and $c = hippy
GOSUB PlayGUI CurrentInfo
else
ezreq "Play a mod first!" "Jep!" jep
endif
xMENU 'MODINFO' 'Max Songposition' '' ''
if $a = loaded
and $c = hippy
GOSUB PlayGUI MaxInfo
else
ezreq "Play a mod first!" "Jep!" jep
endif
xMenu 'SOUND' '8 BIT Soundquality' '' '8'
CLI 'delete S:HippoPlayer.prefs QUIET'
CLI 'Copy PlayGUI:SoundPrefs/8Bit/HippoPlayer.prefs to S:'
Update PlayGUI 3 "Soundquality=8BIT"
xMenu 'SOUND' '14 BIT Soundquality' '' '4'
CLI 'delete S:HippoPlayer.prefs QUIET'
CLI 'Copy PlayGUI:SoundPrefs/14Bit/HippoPlayer.prefs to S:'
Update PlayGUI 3 "Soundquality=14BIT"
xMENU 'SOUND' 'AHI Prefs' '' '6'
CLI 'delete S:HippoPlayer.prefs QUIET'
CLI 'Copy PlayGUI:SoundPrefs/AHI/HippoPlayer.prefs to S:'
Update PlayGUI 3 "Soundquality=16BIT"
xMENU 'SOUND' 'USER Prefs' '' 'u'
CLI 'delete S:HippoPlayer.prefs QUIET'
CLI 'Copy PlayGUI:SoundPrefs/USER/HippoPlayer.prefs to S:'
Update PlayGUI 3 "Soundquality=USER"
xMenu 'MODS' 'Eject' '' 'e'
gosub PlayGUI SelMod
xMenu 'MODS' 'Play' '' 'p'
gosub PlayGUI ModorMpg
xMenu 'MODS' 'Pause/Continue' '' 'z'
gosub PlayGUI PausCont
xMenu 'MODS' 'Stop' '' 'x'
gosub PlayGUI StopMod
xMenu 'MODS' 'Forward' '' 'f'
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER FFWD
else
gosub PlayGUI Hopp
endif
xMenu 'MODS' 'Rewind' '' 'r'
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER REW
else
gosub PlayGUI Hopp
endif
xMENU 'MODS' BARLABEL '' ''
xMENU 'MODS' 'Mute' '' 'm'
gosub PlayGUI Ruhe
xMENU 'MODS' 'Personal Volume' '' 'v'
gosub PlayGUI PersVol
xMENU 'Play16' 'Load sample' '' ''
ReqFile 0 0 200 400 "Choose a sample..." LOAD sample $SAMPLEPATH
b = loaded
extract sample FILE sname
update PlayGUI 1 '$sname'
update PlayGUI 2 'Selected sample'
update PlayGUI 3 'AUTOPLAY = $SAMAUTO'
gosub PlayGUI Autoabfrage
xROUTINE Autoabfrage
if $b = loaded
and $SAMAUTO = ON
gosub PlayGUI PLAY16SAMPLE
else
endif
xMenu 'Play16' 'Copy sample to...' '' ''
if $b = loaded
and $sample > ''
gosub PlayGUI fragsamdest
else
ezreq "There's no sample in memory!" "You are right!" right
endif
XROUTINE fragsamdest
Reqfile 0 0 200 400 "Just choose destination dir...(no filename!)" SAVE samdest RAM:
ezreq "Really copy to this location?" "Yes|Nope" tja
if $tja = 1
gosub PlayGUI asksamcopy
elseif $tja = 0
endif
xROUTINE asksamcopy
ifexists DIR $samdest
cli 'C:copy $sample to $samdest QUIET'
ezreq "Finished!" "Very good!" good
else
ezreq "Cannot find destination dir!" "Oh! Sorry!" sorry
endif
xMENU 'Play16' 'Autoplay' 'ON' ''
SAMAUTO = ON
update PlayGUI 3 'AUTOPLAY = $SAMAUTO'
xMENU 'Play16' 'Autoplay' 'OFF' ''
SAMAUTO = OFF
update PlayGUI 3 'AUTOPLAY = $SAMAUTO'
xMENU 'Play16' 'Loop Samples' 'ON' '0'
P16LOOP = 0
update PlayGUI 1 "LOOP: ON"
xMENU 'Play16' 'Loop Samples' 'OFF' '1'
P16LOOP = 1
update PlayGUI 1 "LOOP: OFF"
xMENU 'Play16' 'Filter' 'ON' '2'
P16FILTER = ON
update PlayGUI 3 "FILTER: ON"
xMENU 'Play16' 'Filter' 'OFF' '3'
P16FILTER = OFF
update PlayGUI 3 "FILTER: OFF"
xMENU 'Play16' 'Output' 'Paula8' ''
OUTPUT = Paula8
update PlayGUI 3 "OUTPUT: Paula 8bit"
xMENU 'Play16' 'Output' 'Paula14' ''
OUTPUT = Paula14
update PlayGUI 3 "OUTPUT: Paula 14bit"
xMENU 'Play16' 'Output' 'Paula14c' ''
OUTPUT = Paula14c
update PlayGUI 3 "OUTPUT: Paula 14 bit cal."
xMENU 'Play16' 'Output' 'MPro' ''
OUTPUT = MPro
update PlayGUI 3 "OUTPUT: Maestro Pro"
xMENU 'Play16' 'Output' 'AHI' ''
OUTPUT = AHI
update PlayGUI 3 "OUTPUT: AHI"
xMENU Play16 BARLABEL '' ''
xMENU 'Play16' 'Convert to 8SVX' '' ''
OUTPUT = 8SVX
Update PlayGUI 3 "CONVERT MODE"
xMENU 'Play16' 'Set sample buffer' '' ''
Update Sambuff 1 'Buffer:$SAMPLEBUFFER'
guiopen Sambuff
xMENU 'Play16' 'Change Loop' '' ''
Update ChangeLoop 1 'Loops:$P16LOOP'
guiopen ChangeLoop
xMenu Play16 BARLABEL '' ''
xMENU 'Play16' 'Save Prefs' '' ''
gosub PathConfig SavePaths
xMENU 'THEMES' 'Load Theme' '' ''
gosub PlayGUI ThemeAuswahl
xROUTINE ThemeAuswahl
ReqFile 0 0 200 400 "Choose theme dir..." DIR THEMEPATH #PLAYGUI:Themes/
gosub PlayGUI OpenTheme
xROUTINE OpenTheme
THEME = YES
ifexists DIR $THEMEPATH
gosub PlayGUI NewThemeLoad
else
ezreq "Cannot find theme!" "ok" ok
endif
xROUTINE NewThemeLoad
assign Themes: $THEMEPATH
ifexists FILE Themes:Pattern/PGpattern
freeimage GuiPattern
loadimage Themes:Pattern/PGpattern GuiPattern Workbench
gosub PlayGUI DoQuitSound
else
ezreq "Cannot find theme element!" "Ok" ok
endif
xROUTINE DoQuitSound
ifexists FILE Themes:Sounds/SoundEnd
TQUITSOUND = Themes:Sounds/SoundEnd
gosub PlayGUI DoStartSound
else
ezreq "Cannot find quit sound!" "Ok" ok
endif
xROUTINE DoStartSound
ifexists FILE Themes:Sounds/SoundStart
TSTARTSOUND = Themes:Sounds/SoundStart
gosub PlayGUI DoSkin
else
ezreq "Cannot find start sound!" "Ok" ok
endif
xROUTINE DoSkin
ifexists FILE Themes:Skin/main.iff
assign Skins: Themes:Skin/
gosub PlayGUI Wechsel2
else
ezreq "Cannot find skin!" "Ok" ok
endif
xMENU 'THEMES' 'Save Theme' '' ''
gosub PathConfig SavePaths
xMENU 'PLUGINS' 'Plone' '' ''
IfExists DIRECTORY $PLONEPATH
assign GUIPlone: $PLONEPATH
GuiLoad GUIPlone:Plone
else
ezreq "No plugin! Maybe wrong path?" "Maybe.." maybe
endif
xMENU 'PLUGINS' 'Skinner' '' ''
IfExists DIRECTORY $SKINNERPATH
assign GUISkinner: $SKINNERPATH
GuiLoad GUISkinner:Skinner
else
ezreq "No plugin! Maybe wrong path?" "Maybe.." maybe
endif
xMENU 'PREFS' 'Config' '' ''
guiopen Voreinstellung
xMENU 'PREFS' 'Save Config' '' ''
gosub PathConfig SavePaths
xMENU 'PREFS' 'Reset GUI to defaults' '' ''
SKINSELECT = PLAYGUI:SKINS/Standard/
GuiPattern = PlayGUI:SYS/Patterns/PGpattern
freeimage GuiPattern
loadimage $GuiPattern GuiPattern Workbench
gosub PlayGUI Wechsel
; BUTTON - DEFINITIONEN
xROUTINE PausCont
if $a = loaded
and $stop = na
SendRexx HIPPOPLAYER CONT
endif
xRoutine Ruhe
if $a = loaded
and $c = hippy
and $stumm = laut
SendRexx HIPPOPLAYER VOLUME=0
update PlayGUI 3 "MUTE"
stumm = leise
gosub PlayGUI Hopp
elseif $a = loaded
and $c = hippy
and $stumm = leise
SendRexx HIPPOPLAYER VOLUME=$vol
gosub PlayGUI Volmeter
stumm = laut
gosub playGUI Hopp
else
gosub PlayGUI Hopp
endif
xROUTINE PersVol
if $a = loaded
and $c = hippy
and $pvol = NO
SendRexx HIPPOPLAYER VOLUME=$vol2
update PlayGUI 3 "Personal vol"
pvol = YES
gosub PlayGUI Hopp
elseif $a = loaded
and $c = hippy
and $pvol = YES
SendRexx HIPPOPLAYER VOLUME=$vol
gosub PlayGUI Volmeter
pvol = NO
gosub playGUI Hopp
else
gosub PlayGUI Hopp
endif
xAPPWindow module
extract module FILE mody
extract module EXT extension
if $extention = 'MP3'
or $extention = '.mp3'
or $extention = '.mp3"'
or $extention = '.mp2'
or $extention = '.mp2"'
or $extention = '.MP3'
or $extention = '.MP3"'
or $extention = '.mP3'
or $extention = '.mP3"'
or $extention = '.Mp3'
or $extention = '.Mp3"'
or $extention = '.MP2'
or $extention = '.MP2"'
or $extention = '.mP2'
or $extention = '.mP2"'
or $extention = '.Mp2'
or $extention = '.Mp2"'
or $extention = '.MPG'
or $extention = '.MPG"'
or $extention = '.mpg'
or $extention = '.mpg"'
m = loaded
gosub PlayGUI MP3Play
else
gosub PlayGUI RestabfrageDue
endif
xROUTINE RestabfrageDue
if $short = yep
a = loaded
gosub PlayGUI InfoPlay
elseif $short = nope
a = loaded
gosub PlayGUI NormalPlay
XAREA 3 3 15 15 BOX
Gadhelp "Quickmenu"
guiopen QuickMenu
XAREA 250 95 20 18 BOX
Gadhelp "Miniplay"
gosub PlayGUI mini
XAREA 15 85 20 18 NOBOX
Gadhelp "Info about the Module"
gosub PlayGUI ModSamInfo
xROUTINE ModSamInfo
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER SAMPLES
else
gosub PlayGUI Hopp
endif
XAREA 99 85 20 18 NOBOX
Gadhelp "FORWARD"
gosub PlayGUI ForwMod
xROUTINE ForwMod
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER FFWD
else
gosub PlayGUI Hopp
endif
XAREA 78 85 20 18 NOBOX
Gadhelp "REWIND"
gosub PlayGUI RewMod
xROUTINE RewMod
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER REW
else
gosub PlayGUI Hopp
endif
XAREA 36 85 20 18 NOBOX
Gadhelp "Play selected module, mpg or midi"
IfExists FILE $module
gosub PlayGUI ModorMpg
else
gosub PlayGUI ladenwollen
endif
xROUTINE ladenwollen
ezreq "No mod in memory!" "choose a mod|ok" ok
if $ok = "1"
gosub PlayGUI SelMod
elseif $ok = "0"
endif
xROUTINE ModorMpg
if $m = loaded
and $extention = '.MP3'
or $extention = '.mp3'
or $extention = '.mp3"'
or $extention = '.mp2'
or $extention = '.mp2"'
or $extention = '.MP3'
or $extention = '.MP3"'
or $extention = '.mP3'
or $extention = '.mP3"'
or $extention = '.Mp3'
or $extention = '.Mp3"'
or $extention = '.MP2'
or $extention = '.MP2"'
or $extention = '.mP2'
or $extention = '.mP2"'
or $extention = '.Mp2'
or $extention = '.Mp2"'
or $extention = '.MPG'
or $extention = '.MPG"'
or $extention = '.mpg'
or $extention = '.mpg"'
gosub PlayGUI MP3Play
else
gosub PlayGUI Restabfrage
endif
xROUTINE Restabfrage
if $gm = loaded
and $extention = '.mid'
or $extention = '.MID'
or $extention = '.Mid'
or $extention = '.midi'
or $extention = '.MIDI'
Gosub PlayGUI MidiPlay
elseif $a = loaded
and $short = yep
gosub PlayGUI InfoPlay
elseif $a = loaded
and $short = nope
gosub PlayGUI NormalPlay
elseif $c = hippyend
gosub PlayGUI choice
endif
XROUTINE InfoPlay
if $m = loaded
and $stopmpg = na
Update PlayGUI 300 '}'
BreakTask $MPEGAPATH C
stopmpg = ja
endif
if $gm = loaded
and $stopmidi = na
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
endif
if $b = loaded
and $d = play16
BreakTask $PLAY16PATH C
d = play16end
endif
if $a = loaded
and $c = hippy
and $stop = na
CLI 'C:run >NIL: $HIPPOPATH quit'
gosub PlayGUI modspielenDue
else
gosub PlayGUI modspielenDue
endif
xRoutine modspielenDue
ifexists FILE $HIPPOPATH
Update PlayGUI 300 '{'
CLI 'C:run >NIL: $HIPPOPATH hide $module'
c = hippy
stop = na
if $playtimer = yes
zeit = 0
setgad PlayGUI 200 ON
elseif $playtimer = no
setgad PlayGUI 200 OFF
endif
Update PlayGUI 300 '{'
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER VOLUME=$vol
extract module FILE *mody
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET SIZE"
*size = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET DURA"
*time = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET CSPO"
*curr = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER 'GET MSPO'
*max = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
*typ = $$REXXRET
update PlayGUI 3 "$*typ"
update Shortinfo 10 "NAME: $*mody"
update Shortinfo 11 "MODTYPE: $*typ"
update Shortinfo 12 "SIZE: $*size bytes"
if $*time = 0
update ShortInfo 13 "TIME: Not available"
elseif $*time > 0
update Shortinfo 13 "TIME: $*time seconds"
endif
if $*max = 0
update ShortInfo 14 "MAXIMAL POSITION: Not available"
elseif $*max > 0
update Shortinfo 14 "MAXIMAL POSITION: $*max"
endif
update ShortInfo 15 "CURRENT POSITION: $*curr"
update PlayGUI 1 '$*mody'
else
ezreq "Can't find hippoplayer! Please configure the paths!" "Will do!" do
endif
XROUTINE NormalPlay
if $m = loaded
and $stopmpg = na
Update PlayGUI 300 '}'
BreakTask $MPEGAPATH C
stopmpg = ja
endif
if $b = loaded
and $d = play16
BreakTask $PLAY16PATH C
d = play16end
endif
if $gm = loaded
and $stopmidi = na
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
endif
if $a = loaded
and $c = hippy
and $stop = na
CLI 'C:run >NIL: $HIPPOPATH quit'
gosub PlayGUI modspielen
else
gosub PlayGUI modspielen
endif
xRoutine modspielen
ifexists FILE $HIPPOPATH
CLI 'C:run >NIL: $HIPPOPATH hide $module'
c = hippy
stop = na
if $playtimer = yes
zeit = 0
setgad PlayGUI 200 ON
elseif $playtimer = no
setgad PlayGUI 200 OFF
endif
Update PlayGUI 300 '{'
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER VOLUME=$vol
extract module FILE *mody
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET SIZE"
*size = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET DURA"
*time = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET CSPO"
*curr = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET MSPO"
*max = $$REXXRET
WAIT PORT "HIPPOPLAYER" 5000
SendRexx HIPPOPLAYER "GET TYPE"
*typ = $$REXXRET
update PlayGUI 3 "$*typ"
update PlayGUI 1 '$*mody'
else
ezreq "Can't find hippoplayer! Please configure the paths!" "Will do!" do
endif
xROUTINE MP3Play
if $c = hippy
and $stop = na
Update PlayGUI 300 '}'
CLI 'C:run >NIL: $HIPPOPATH quit'
stop = ja
c = hippyend
endif
if $gm = loaded
and $stopmidi = na
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
endif
if $b = loaded
and $d = play16
BreakTask $PLAY16PATH C
d = play16end
endif
if $m = loaded
and $stopmpg = na
BreakTask $MPEGAPATH C
gosub PlayGUI mpgspielen
stopmpg = ja
else
gosub PlayGUI mpgspielen
endif
xROUTINE mpgspielen
ifexists FILE $MPEGAPATH
Update PlayGUI 300 '{'
CLI 'run >NIL: $MPEGAPATH -p $priority -d $freq -q $quality -I$number -f $audiofilter -t $audiobuffer -v $vol -T -b $buffersize $module'
if $playtimer = yes
zeit = 0
setgad PlayGUI 200 ON
elseif $playtimer = no
setgad PlayGUI 200 OFF
endif
extract module FILE *mody
update PlayGUI 1 '$*mody'
stopmpg = na
else
ezreq "Can't find MPEGA! Please configure the paths!" "Will do!" do
endif
xROUTINE MidiPlay
if $c = hippy
and $stop = na
Update PlayGUI 300 '}'
CLI 'C:run >NIL: $HIPPOPATH quit'
stop = ja
c = hippyend
endif
if $b = loaded
and $d = play16
BreakTask $PLAY16PATH C
d = play16end
endif
if $gm = loaded
and $stopmidi = na
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
endif
if $m = loaded
and $stopmpg = na
BreakTask $MPEGAPATH C
stopmpg = ja
gosub PlayGUI midispielen
else
gosub PlayGUI midispielen
endif
xROUTINE midispielen
ifexists FILE $GMPLAYPATH
Update PlayGUI 300 '{'
CLI 'run >NIL: $GMPLAYPATH VOL=$gmvol FREQ=$gmfreq POLY=$gmpoly FL=$gmfilter PRI=$gmpriority BUF=$gmbuffer $module'
if $playtimer = yes
zeit = 0
setgad PlayGUI 200 ON
elseif $playtimer = no
setgad PlayGUI 200 OFF
endif
extract module FILE *mody
update PlayGUI 1 '$*mody'
stopmidi = na
else
ezreq "Can't find GMPlay! Please configure the paths!" "Will do!" do
endif
;PLAYSAMPLE
XAREA 153 21 20 18 NOBOX
Gadhelp "Play selected sample"
gosub PlayGUI PLAY16SAMPLE
xROUTINE PLAY16SAMPLE
if $m = loaded
and $stopmpg = na
BreakTask $MPEGAPATH C
Update PlayGUI 300 '}'
stopmpg = ja
endif
if $gm = loaded
and $stopmidi = na
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
endif
if $a = loaded
and $c = hippy
and $stop = na
CLI 'C:run >NIL: $HIPPOPATH quit'
stop = ja
c = hippyend
endif
if $b = loaded
BreakTask $PLAY16PATH C
d = play16end
endif
ifexists FILE $PLAY16PATH
Update PlayGUI 300 '{'
CLI 'C:run >NIL: $PLAY16PATH $sample volume=$vol L=$P16LOOP FILTER=$P16FILTER OUTPUT=$OUTPUT BUFFER=$SAMPLEBUFFER'
if $playtimer = yes
zeit = 0
setgad PlayGUI 200 ON
elseif $playtimer = no
setgad PlayGUI 200 OFF
endif
gosub PlayGui Samplename
d = play16
else
ezreq "Can't find Play16! Please configure the paths!" "Will do!" do
endif
XROUTINE Samplename
update PlayGUI 2 "$sname"
if $P16LOOP = 0
update PlayGUI 1 "LOOP: ON"
elseif $P16LOOP = 1
update PlayGUI 1 "LOOP: OFF"
elseif $P16LOOP > 1
update PlayGUI 1 "LOOP: $P16LOOP"
endif
if $P16FILTER = ON
update PlayGUI 3 "FILTER: ON"
elseif $P16FILTER = OFF
update PlayGUI 3 "FILTER: OFF"
endif
XAREA 57 85 20 18 NOBOX
Gadhelp "Stop playing the module"
gosub PlayGUI StopMod
xROUTINE StopMod
gosub PlayGUI Stopabfrage
xROUTINE Stopabfrage
IF $a = loaded
and $stop = na
gosub PlayGUI Modstop
elseif $m = loaded
and $stopmpg = na
gosub PlayGUI Mpgstop
elseif $gm = loaded
and $stopmidi = na
gosub PlayGUI MidiStop
xROUTINE Modstop
Update PlayGUI 300 '}'
CLI 'C:run >NIL: $HIPPOPATH quit'
stop = ja
c = hippyend
update PlayGUI 1 'Status: Stop'
update PlayGUI 2 'PlayGUI v.3.0'
update PlayGUI 3 ''
setgad PlayGUI 200 OFF
xROUTINE Mpgstop
Update PlayGUI 300 '}'
BreakTask $MPEGAPATH C
stopmpg = ja
update PlayGUI 1 'Status: Stop'
update PlayGUI 2 'PlayGUI v.3.0'
update PlayGUI 3 ''
setgad PlayGUI 200 OFF
xROUTINE MidiStop
Update PlayGUI 300 '}'
BreakTask $GMPLAYPATH C
stopmidi = ja
update PlayGUI 1 'Status: Stop'
update PlayGUI 2 'PlayGUI v.3.0'
update PlayGUI 3 ''
setgad PlayGUI 200 OFF
XAREA 173 21 20 18 NOBOX
Gadhelp "Stop playing the sample"
if $b = loaded
BreakTask $PLAY16PATH C
d = play16end
Update PlayGUI 300 '}'
update PlayGUI 1 'Stop sample'
update PlayGUI 2 ''
update PlayGUI 3 ''
setgad PlayGUI 200 OFF
endif
XAREA 193 21 20 18 NOBOX
Gadhelp "Select a sample"
ReqFile 0 0 200 400 "Choose a sample..." LOAD sample $SAMPLEPATH
b = loaded
extract sample FILE sname
update PlayGUI 1 '$sname'
update PlayGUI 2 'Selected sample'
update PlayGUI 3 'AUTOPLAY = $SAMAUTO'
gosub PlayGUI Autoabfrage
xROUTINE Autoabfrage
if $b = loaded
and $SAMAUTO = ON
gosub PlayGUI PLAY16SAMPLE
else
endif
XAREA 129 85 20 18 NOBOX
Gadhelp "Select a module, mpg or midi"
gosub PlayGUI SelMod
xROUTINE SelMod
if $but = nein
Setgad PlayGUI 5/8 SHOW
Setgad PlayGUI 1/3 SHOW
redraw PlayGUI
but = ja
endif
ReqFile 0 0 200 400 "Choose a module, mpg or midi..." LOAD module $MODPATH
if $AUTOPLAY = YES
gosub PlayGUI Sofort
else
gosub PlayGUI Nichtsofort
endif
xROUTINE Nichtsofort
ifexists FILE $module
gosub PlayGUI Extr
endif
xRoutine Extr
extract module FILE mody
extract module EXT extention
gosub PlayGUI Erkennung
xROUTINE Erkennung
if $extention = '.mp3'
or $extention = '.mp3"'
or $extention = '.mp2'
or $extention = '.mp2"'
or $extention = '.MP3'
or $extention = '.MP3"'
or $extention = '.mP3'
or $extention = '.mP3"'
or $extention = '.Mp3'
or $extention = '.Mp3"'
or $extention = '.MP2'
or $extention = '.MP2"'
or $extention = '.mP2'
or $extention = '.mP2"'
or $extention = '.Mp2'
or $extention = '.Mp2"'
or $extention = '.MPG'
or $extention = '.MPG"'
or $extention = '.mpg'
or $extention = '.mpg"'
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected MPG'
update PlayGUI 3 ''
m = loaded
else
gosub PlayGUI midifall
xROUTINE midifall
if $extention = '.mid'
or $extention = '.MID'
or $extention = '.Mid'
or $extention = '.midi'
or $extention = '.MIDI'
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected MIDI'
update PlayGUI 3 ''
gm = loaded
else
gosub PlayGUI modfall
endif
xROUTINE modfall
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected mod'
update PlayGUI 3 ''
a = loaded
xROUTINE Sofort
ifexists FILE $module
extract module FILE mody
extract module EXT extention
gosub PlayGUI Erkennung2
else
ezreq "No mod or mpg selected!" "I know!" jep
endif
xROUTINE Erkennung2
if $extention = '.mp3'
or $extention = '.mp3"'
or $extention = '.mp2'
or $extention = '.mp2"'
or $extention = '.MP3'
or $extention = '.MP3"'
or $extention = '.mP3'
or $extention = '.mP3"'
or $extention = '.Mp3'
or $extention = '.Mp3"'
or $extention = '.MP2'
or $extention = '.MP2"'
or $extention = '.mP2'
or $extention = '.mP2"'
or $extention = '.Mp2'
or $extention = '.Mp2"'
or $extention = '.MPG'
or $extention = '.MPG"'
or $extention = '.mpg'
or $extention = '.mpg"'
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected MPG'
update PlayGUI 3 ''
m = loaded
gosub PlayGUI Zwischensochn
else
gosub PlayGUI midifall2
endif
xROUTINE Zwischensochn
if $c = hippy
and $stop = na
Update PlayGUI 300 '}'
CLI 'C:run >NIL: $HIPPOPATH quit'
stop = ja
c = hippyend
endif
if $b = loaded
and $d = play16
BreakTask $PLAY16PATH C
d = play16end
endif
if $m = loaded
and $stopmpg = na
BreakTask $MPEGAPATH C
gosub PlayGUI mpgspielen
else
gosub PlayGUI mpgspielen
endif
xROUTINE midifall2
if $extention = '.mid'
or $extention = '.MID'
or $extention = '.Mid'
or $extention = '.midi'
or $extention = '.MIDI'
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected MIDI'
update PlayGUI 3 ''
gm = loaded
gosub PlayGUI MidiPlay
else
gosub PlayGUI modfall2
endif
xROUTINE modfall2
update PlayGUI 1 '$mody'
update PlayGUI 2 'Selected mod'
update PlayGUI 3 ''
a = loaded
gosub PlayGUI WasSpielen
xROUTINE WasSpielen
if $a = loaded
and $short = yep
gosub PlayGUI InfoPlay
elseif $a = loaded
and $short = nope
gosub PlayGUI NormalPlay
elseif $c = hippyend
gosub PlayGUI choice
endif
XAREA 160 85 50 18 NOBOX
Gadhelp "Launch your favourite Music-tool!"
ReqFile 0 0 200 400 "Choose a music-tool..." LOAD tool $LAUNCHPATH
CLI 'C:RUN >NIL: $tool'
XAREA 213 20 50 20 NOBOX
gadhelp "Write commentary about the current module or sample and save it"
GuiLoad :PlayInfo
XAREA 210 85 35 18 NOBOX
Gadhelp "Quit PlayGUI"
gosub PlayGUI DASENDE
xROUTINE DASENDE
EZReq "Really quit PlayGUI?" "Quit|Cancel" quity
if $quity = 1
and $c = hippy
gosub PlayGUI SQUIT
elseif $stopmpg = na
BreakTask $MPEGAPATH C
gosub PlayGUI ENDE
elseif $stopmidi = na
BreakTask $GMPLAYPATH C
gosub PlayGUI ENDE
elseif $quity = 1
and $d = play16
BreakTask $PLAY16PATH C
gosub PlayGUI ENDE
elseif $quity = 1
gosub PlayGUI ENDE
elseif $quity = 1
and $c = Hipppyend
gosub PlayGUI ENDE
elseif $quity = 1
and $d = play16end
gosub PlayGUI ENDE
else
Gosub PlayGUI Hopp
endif
xROUTINE SQUIT
CLI 'C:run >NIL: $HIPPOPATH quit'
if $THEME = YES
CLI 'C:run >NIL: $PLAY16PATH $TQUITSOUND'
gosub PlayGUI ENDE5
elseif $THEME = NO
CLI 'C:run >NIL: $PLAY16PATH $QUITSOUND'
gosub PlayGUI ENDE5
endif
xROUTINE ENDE5
if $AUTOSAVE = YES
gosub PathConfig SavePaths
endif
freeimage haut
freeimage Barmod
freeimage BarSam
freeimage BarOpt
freeimage BarVol
freeimage GuiPattern
freeimage ab
freeimage frage
freeimage mpgfx
freeimage optgfx
freeimage mpegagfx
freeimage P16gfx
freeimage configgfx
freeimage quickgfx
freeimage modinfogfx
freeimage themesgfx
freeimage startupgfx
freeimage plugingfx
freeimage midigfx
assign Skins: remove
guiquit PlayGUI
guiquit ShortInfo
guiquit SYSInfo
guiquit MiniPlay
guiquit PGAbout
guiquit Voreinstellung
guiquit OptionConfig
guiquit StartupConfig
guiquit PathConfig
guiquit P16Config
guiquit SetVolume
guiquit Themes
guiquit QuickMenu
guiquit Preview
guiquit ThemeCreate
guiquit ShowPattern
guiquit ChangeLoop
guiquit PlugSet
guiquit ShowSkin
guiquit Createprogress
guiquit mpgconfig
guiquit Sambuff
guiquit aboutstart
guiquit GMPlayconfig
XROUTINE TimeInfo
SendRexx HIPPOPLAYER 'GET DURA'
*time = $$REXXRET
Update PlayGUI 3 'Total:$*time Sec'
XROUTINE SizeInfo
SendRexx HIPPOPLAYER 'GET SIZE'
*size = $$REXXRET
Update PlayGUI 3 'Size:$*size bytes'
XROUTINE CurrentInfo
SendRexx HIPPOPLAYER 'GET CSPO'
*curr = $$REXXRET
Update PlayGUI 3 'Current Position $*curr'
XROUTINE MaxInfo
SendRexx HIPPOPLAYER 'GET MSPO'
*max = $$REXXRET
Update PlayGUI 3 'Max Position:$*max'
XROUTINE AllInfo
GuiOpen ShortInfo
;Info Update
XAREA 18 25 126 38 BOX
Gadhelp "Info about the Module"
if $a = loaded
and $c = hippy
SendRexx HIPPOPLAYER SAMPLES
else
gosub PlayGUI Hopp
endif
XTEXTBOX 128 23 16 14 '' ''
attr tbstyle 3/3/plain/left
attr tbox 2/1/1/none/out
gadid 300
;Text 23 33 10 19 '' 21 NOBOX
XTEXTBOX 18 23 110 14 '' ''
attr tbstyle 2/3/plain/left
attr tbox 2/1/1/none/out
gadid 2
;Text 23 20 10 20 '' 25 NOBOX
XTEXTBOX 18 37 126 14 '' ''
attr tbstyle 2/3/plain/left
attr tbox 2/1/1/none/out
gadid 1
;text 23 46 10 20 '' 25 NOBOX
XTEXTBOX 18 51 126 14 '' ''
attr tbstyle 2/3/plain/left
attr tbox 2/1/1/none/out
gadid 3
;+++Short info about module+++
NewFile ShortInfo
WINBIG 27 318 240 200 "SHORT INFO"
wintype 01110000
image -1 10 modinfogfx
xBUTTON 10 50 60 20 "_Help"
ezreq "This window shows you infos about a MOD!" "ok" ok
XBUTTON 170 50 60 20 "_Close"
short = nope
guiclose ShortInfo
LINE 10 88 235 88 1
LINE 10 108 235 108 1
LINE 10 128 235 128 1
LINE 10 148 235 148 1
LINE 10 168 235 168 1
;XBUTTON 10 50 130 20 "_Refresh current position"
VARPATH PlayGUI
xonload
if $a = loaded
and $c = hippy
update ShortInfo 10 "NAME: $*mody"
update ShortInfo 11 "MODTYPE: $*typ"
update ShortInfo 12 "SIZE: $*size bytes"
if $*time = 0
update ShortInfo 13 "TIME: Not available"
else
update ShortInfo 13 "TIME: $*time seconds"
endif
if $*max = 0
update ShortInfo 14 "MAXIMAL POSITION: Not available"
else
update ShortInfo 14 "MAXIMAL POSITION: $*max"
endif
else
ezreq "Play a mod first!" "Jep" jep
endif
TEXT 10 70 20 20 '' 50 NOBOX
gadid 10
TEXT 10 90 20 20 '' 50 NOBOX
gadid 11
TEXT 10 110 20 20 '' 40 NOBOX
gadid 12
TEXT 10 130 20 20 '' 40 NOBOX
gadid 13
TEXT 10 150 20 20 '' 40 NOBOX
gadid 14
TEXT 10 170 20 20 '' 40 NOBOX
gadid 15
;----------------------------------------------------------------------------
NewFile MiniPlay
WINBIG 0 0 135 20 "MINI PLAY"
wintype 11110000
image 1 1 BarMod
xONCLOSE
GuiOpen PlayGUI
xMENU 'MiniPLAY' 'HELP' '' ''
ezreq "To maximize - click on the close gadget!" "OK!" ok
xMENU 'MiniPLAY' 'Close' '' '-'
GuiClose MiniPlay
GuiOpen PlayGUI
xMENU 'PLUGINS' 'Plone' '' ''
IfExists DIRECTORY $PLONEPATH
assign GUIPlone: $PLONEPATH
GuiLoad GUIPlone:Plone
else
ezreq "No plugin! Maybe wrong path?" "Maybe.." maybe
endif
xAREA 0 0 20 18 NOBOX
gosub PlayGUI ModSamInfo
xAREA 21 0 20 18 NOBOX
gosub PlayGUI NormalPlay
xAREA 42 0 20 18 NOBOX
gosub PlayGUI StopMod
xAREA 62 0 20 18 NOBOX
gosub PlayGUI RewMod
xAREA 83 0 20 18 NOBOX
gosub PlayGUI ForwMod
xAREA 110 0 20 18 NOBOX
gosub PlayGUI SelMod
;------------------------------------------------------------------------------------
NEWFile QuickMenu
WINBIG -1 -1 100 170 "QuickMenu"
wintype 11010000
WINONMOUSE 10 10
WINBACKGROUND IMAGE GuiPattern 0
image 0 0 quickgfx
VARPATH PlayGUI
xONCLOSE
guiclose QuickMenu
xButton -1 25 80 20 "Plone"
guiclose QuickMenu
IfExists DIRECTORY $PLONEPATH
assign GUIPlone: $PLONEPATH
GuiLoad GUIPlone:Plone
else
ezreq "No plugin! Maybe wrong path?" "Maybe.." maybe
endif
xButton -1 45 80 20 "New Skin"
guiclose QuickMenu
gosub PlayGUI NeuHaut
xButton -1 65 80 20 "New Theme"
guiclose QuickMenu
gosub PlayGUI ThemeAuswahl
xButton -1 85 80 20 "Config"
guiclose QuickMenu
guiopen Voreinstellung
xButton -1 105 80 20 "Pause/Cont"
gosub PlayGUI PausCont
xButton -1 125 80 20 "MUTE"
gosub PlayGUI Ruhe
xButton -1 145 80 20 "PVolume"
gosub PlayGUI PersVol
;-------------------------------------------------------------------------------------
NewFile SYSInfo
WINBIG 0 0 420 340 "SYS INFO"
wintype 01110000
VARPATH PlayGUI
xBUTTON 10 20 100 20 "Show _paths"
Update SYSInfo 30 "Path of Hippoplayer = $HIPPOPATH"
Update SYSInfo 31 "Path of Play16 = $PLAY16PATH"
Update SYSInfo 32 "Path of your Mods = $MODPATH"
Update SYSInfo 33 "Path of your Samples = $SAMPLEPATH"
Update SYSInfo 34 "Launchpath = $LAUNCHPATH"
Update SYSInfo 35 "Path of Plone = $PLONEPATH"
Update SYSInfo 36 "Path of scopes = $SCOPEPATH"
Update SYSInfo 37 "Copypath of mods = $COPYPATH"
Update SYSInfo 38 "Copypath of samples = $COPYPATH2"
Update SYSInfo 40 "YAMpath = $YAMPATH"
Update SYSInfo 39 "Browserpath = $BROWSERPATH"
xBUTTON 120 20 100 20 "Show _config"
Update SYSInfo 30 "Launch Plone at startup = $PLONESTART"
Update SYSInfo 31 "Launch ModINFO at startup = $STARTMODINFO"
Update SYSInfo 32 "Autoplay modules = $AUTOPLAY"
Update SYSInfo 33 "Play16 loop mode = $P16LOOP"
Update SYSInfo 34 "Play16 filter mode = $P16FILTER"
Update SYSInfo 35 "Default skin = $SKINSELECT"
Update SYSInfo 36 "Personal volume = $vol2"
Update SYSInfo 37 "Use Themes = $THEME"
Update SYSInfo 38 "Pattern = $GuiPattern"
Update SYSInfo 39 "StartSound = $STARTSOUND"
Update SYSInfo 40 "QuitSound = $QUITSOUND"
xBUTTON 240 20 100 20 "_Exit"
guiclose SYSInfo
Text 10 50 400 20 '' 280 BOX
gadid 30
Text 10 75 400 20 '' 280 BOX
gadid 31
Text 10 100 400 20 '' 280 BOX
gadid 32
Text 10 125 400 20 '' 280 BOX
gadid 33
Text 10 150 400 20 '' 280 BOX
gadid 34
Text 10 175 400 20 '' 280 BOX
gadid 35
Text 10 200 400 20 '' 280 BOX
gadid 36
Text 10 225 400 20 '' 280 BOX
gadid 37
Text 10 250 400 20 '' 280 BOX
gadid 38
Text 10 275 400 20 '' 280 BOX
gadid 39
Text 10 300 400 20 '' 280 BOX
gadid 40
;--------------------------------------------------------------------
Newfile ChangeLoop
WINBIG -1 -1 185 155 "Change loop"
wintype 11010000
VARPATH PlayGUI
xONCLOSE
guiclose ChangeLoop
BOX 10 20 165 105 IN BUTTON
BOX 35 50 113 30 IN BUTTON
CTEXT -1 3 "- LOOP SECTION -" xHelvetica.font 11 2 -1 00000
CTEXT 17 57 "1" xHelvetica.font 11 1 -1 00000
CTEXT 153 57 "100" xHelvetica.font 11 1 -1 00000
xHSLIDER -1 55 100 20 '' P16LOOP 1 100 1 ''
Update ChangeLoop 1 'Loops:$P16LOOP'
TEXT -1 90 60 20 '' 24 BOX
gadid 1
xBUTTON -1 129 50 20 "Okay"
guiclose ChangeLoop
;--------------------------------------------------------------------
Newfile Sambuff
WINBIG -1 -1 220 155 "Change sample buffer"
wintype 11010000
VARPATH PlayGUI
xONCLOSE
guiclose Sambuff
BOX -1 20 200 105 IN BUTTON
BOX -1 50 113 30 IN BUTTON
CTEXT -1 3 "- BUFFER SECTION -" xHelvetica.font 11 2 -1 00000
CTEXT 15 57 "32768" xHelvetica.font 11 1 -1 00000
CTEXT 168 57 "65536" xHelvetica.font 11 1 -1 00000
xHSLIDER -1 55 100 20 '' SAMPLEBUFFER 32768 65536 32768 ''
Update Sambuff 1 'Buffer:$SAMPLEBUFFER'
TEXT -1 90 100 20 '' 24 BOX
gadid 1
xBUTTON -1 129 50 20 "Okay"
guiclose Sambuff
;------------------------------------------------------------
Newfile PGAbout
WINBIG -1 -1 240 310 "About..."
wintype 00000000
VARPATH PlayGUI
image 0 0 ab
CTEXT -1 130 "PlayGUI - Copyright 1999-2000" xHelvetica.font 11 2 -1 00000
CTEXT -1 155 "by Richard Kapp using G4C" xHelvetica.font 11 2 -1 00000
CTEXT -1 255 "- SEND YOUR SKINS,THEMES TO -" xHelvetica.font 11 1 -1 00020
CTEXT -1 280 "------ playgui@gmx.net ------" xHelvetica.font 11 1 -1 00020
xBUTTON -1 180 200 20 "e-mail:Narr.cybersdorf@gmx.net"
CLI 'run >NIL: $YAMPATH mailto narr.cybersdorf@gmx.net subject PlayGUI QUIET'
xBUTTON -1 205 200 20 "www:http://playgui.cxa.de"
CLI 'run >NIL: $BROWSERPATH http://playgui.cxa.de'
xBUTTON -1 230 60 15 "OKAY"
guiclose PGAbout
;------------------------------------------------------------
Newfile aboutstart
WINBIG -1 -1 240 310 "About..."
wintype 00000000
VARPATH PlayGUI
image 0 0 ab
CTEXT -1 130 "PlayGUI - Copyright 1999-2000" xHelvetica.font 11 2 -1 00000
CTEXT -1 155 "by Richard Kapp using G4C" xHelvetica.font 11 2 -1 00000
CTEXT -1 255 "- SEND YOUR SKINS,THEMES TO -" xHelvetica.font 11 1 -1 00020
CTEXT -1 280 "------ playgui@gmx.net ------" xHelvetica.font 11 1 -1 00020
xBUTTON -1 180 200 20 "e-mail:Narr.cybersdorf@gmx.net"
CLI 'run >NIL: $YAMPATH QUIET'
xBUTTON -1 205 200 20 "www:http://playgui.cxa.de"
CLI 'run >NIL: $BROWSERPATH http://playgui.cxa.de'
xBUTTON -1 230 60 15 "OKAY"
guiclose aboutstart
;------------------------------------------------------------
Newfile Voreinstellung
WINBIG -1 -1 290 260 "PlayGUI Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image 10 10 frage
image -1 30 configgfx
xONCLOSE
guiclose Voreinstellung
BOX 10 80 270 130 IN Button
xBUTTON 240 10 40 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/CONFIG.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON 20 90 120 20 "Startup Config"
if $PLONESTART = NO
Update StartupConfig 1 0
elseif $PLONESTART = YES
Update StartupConfig 1 1
endif
if $STARTMODINFO = NO
Update StartupConfig 2 0
elseif $STARTMODINFO = YES
Update StartupConfig 2 1
endif
if $STARTABOUT = OFF
Update StartupConfig 3 0
elseif $STARTABOUT = ON
Update StartupConfig 3 1
endif
if $STARTMOD = OFF
Update StartupConfig 4 0
elseif $STARTMOD = ON
Update Startupconfig 4 1
endif
Update StartupConfig 5 '$STARTMODULE'
guiclose Voreinstellung
guiopen StartupConfig
xBUTTON 150 90 120 20 "Option Config"
Update OptionConfig 60 '$GuiPattern'
Update OptionConfig 61 '$SKINSELECT'
Update OptionConfig 62 '$STARTSOUND'
Update OptionConfig 63 '$QUITSOUND'
if $AUTOSAVE = NO
Update OptionConfig 59 0
elseif $AUTOSAVE = YES
Update OptionConfig 59 1
endif
guiclose Voreinstellung
guiopen OptionConfig
xBUTTON 20 120 120 20 "Path Config"
Update PathConfig 50 $HIPPOPATH
Update PathConfig 51 $PLAY16PATH
Update PathConfig 52 $MPEGAPATH
Update PathConfig 53 $MODPATH
Update PathConfig 54 $SAMPLEPATH
Update PathConfig 55 $LAUNCHPATH
Update PathConfig 56 $SCOPEPATH
Update PathConfig 57 $COPYPATH
Update PathConfig 58 $MPGCOPYPATH
Update PathConfig 59 $COPYPATH2
Update PathConfig 60 $YAMPATH
Update PathConfig 61 $BROWSERPATH
Update PathConfig 62 $GMPLAYPATH
Update PathConfig 63 $MIDICOPYPATH
guiclose Voreinstellung
guiopen PathConfig
xBUTTON 150 150 120 20 "Play16"
if $P16LOOP = 1
Update P16Config 1 0
elseif $P16LOOP = 0
Update P16Config 1 1
elseif $P16LOOP > 1
Update P16Config 1 0
endif
if $P16FILTER = OFF
Update P16Config 2 0
elseif $P16FILTER = ON
Update P16Config 2 1
endif
if $SAMAUTO = OFF
Update P16Config 3 0
elseif $SAMAUTO = ON
Update P16Config 3 1
endif
IF $OUTPUT = Paula8
Update P16Config 4 0
elseif $OUTPUT = Paula14
Update P16Config 4 1
elseif $OUTPUT = Paula14c
Update P16Config 4 2
elseif $OUTPUT = MPro
Update P16Config 4 3
elseif $OUTPUT = AHI
Update P16Config 4 4
endif
guiclose Voreinstellung
guiopen P16Config
xBUTTON 150 120 120 20 "Themes"
Update Themes 80 '$THEMEPATH'
guiclose Voreinstellung
guiopen Themes
xBUTTON 20 150 120 20 "PlugIns"
UPDATE PlugSet 1 $PLONEPATH
UPDATE PlugSet 2 $SKINNERPATH
guiclose Voreinstellung
guiopen PlugSet
xBUTTON 20 180 120 20 "MPEGA"
IF $quality = 0
Update mpgconfig 3 0
elseif $quality = 1
Update mpgconfig 3 1
elseif $quality = 2
Update mpgconfig 3 2
endif
IF $freq = 4
Update mpgconfig 4 0
elseif $freq = 2
Update mpgconfig 4 1
elseif $freq = 1
Update mpgconfig 4 2
endif
if $audiofilter = 0
Update mpgconfig 2 0
elseif $audiofilter = 1
Update mpgconfig 2 1
endif
Update mpgconfig 1 '$audiobuffer sec'
update mpgconfig 5 '$number'
Update mpgconfig 6 '$buffersize KB'
guiclose Voreinstellung
guiopen mpgconfig
xBUTTON 150 180 120 20 "GMPLAY"
IF $gmfreq = 28867
Update GMPlayconfig 3 0
elseif $gmfreq = 44000
Update GMPlayconfig 3 1
elseif $gmfreq = 80000
Update GMPlayconfig 3 2
endif
IF $gmpriority = -1
Update GMPlayconfig 5 0
elseif $gmpriority = 0
Update GMPlayconfig 5 1
elseif $gmpriority = 1
Update GMPlayconfig 5 2
endif
if $gmfilter = NOFILTER
Update GMPlayconfig 2 0
elseif $gmfilter = FILTER
Update GMPlayconfig 2 1
endif
Update GMPlayconfig 1 '$gmbuffer KB'
Update GMPlayconfig 4 '$gmvol Vol'
Update GMPlayconfig 6 '$gmpoly'
guiclose Voreinstellung
guiopen GMPlayConfig
xBUTTON 80 220 60 20 "_OK"
guiclose Voreinstellung
xBUTTON 150 220 60 20 "_SAVE"
gosub PathConfig SavePaths
guiclose Voreinstellung
;-------------------------------------------------------------
Newfile StartupConfig
WINBIG -1 -1 200 260 "Startup Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
image -1 5 startupgfx
xONCLOSE
guiclose StartupConfig
guiopen Voreinstellung
BOX 10 50 180 160 IN BUTTON
VARPATH PlayGUI
CTEXT 30 65 "Start PLONE" XHelvetica.font 11 2 -1 00011
CTEXT 30 95 "Start MODINFO" XHelvetica.font 11 2 -1 00011
CTEXT 30 125 "Start ABOUT window" XHelvetica.font 11 2 -1 00011
CTEXT 30 155 "Start a MOD" XHelvetica.font 11 2 -1 00011
xCHECKBOX 140 60 20 20 "" PLONESTART "YES" "NO" OFF
gadid 1
xCHECKBOX 140 90 20 20 "" STARTMODINFO "YES" "NO" OFF
gadid 2
xCHECKBOX 140 120 20 20 "" STARTABOUT "ON" "OFF" OFF
gadid 3
xCHECKBOX 140 150 20 20 "" STARTMOD "ON" "OFF" OFF
gadid 4
xTEXTIN 30 180 100 20 '' STARTMODULE 'choose startmod!' 200
gadid 5
xBUTTON 140 180 20 20 "<"
ReqFile 0 0 200 400 "Choose start mod..." LOAD STARTMODULE $MODPATH
Update StartupConfig 5 $STARTMODULE
xBUTTON -1 230 50 20 "_OK"
guiclose StartupConfig
guiopen Voreinstellung
xBUTTON 10 230 50 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/STARTUP.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
;-----------------------------------------------------------
Newfile OptionConfig
WINBIG -1 -1 350 420 "Option Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image 0 0 optgfx
xONCLOSE
guiclose OptionConfig
guiopen Voreinstellung
BOX 10 50 330 40 IN BUTTON
BOX 10 120 330 40 IN BUTTON
BOX 10 190 330 40 IN BUTTON
BOX 10 260 330 100 IN BUTTON
CTEXT 10 97 "Choose Default Pattern..." XHelvetica.font 11 2 -1 00011
CTEXT 10 167 "Choose Default Skin..." XHelvetica.font 11 2 -1 00011
CTEXT 10 237 "Choose Sounds..." XHelvetica.font 11 2 -1 00011
CTEXT 30 263 "Choose Startsound..." XHelvetica.font 11 2 -1 00011
CTEXT 30 302 "Choose Quitsound..." XHelvetica.font 11 2 -1 00011
CTEXT 27 63 "Save prefs on exit" XHelvetica.font 11 2 -1 00011
xAREA 255 15 90 10 BOX
CLI 'run >NIL: $BROWSERPATH http://playgui.cxa.de'
xCHECKBOX 140 60 20 20 "" AUTOSAVE "YES" "NO" OFF
gadid 59
xTEXTIN 30 130 220 20 '' GuiPattern '' 200
gadid 60
XTEXTIN 30 200 220 20 '' SKINSELECT '' 200
gadid 61
xTEXTIN 30 280 220 20 '' STARTSOUND '' 200
gadid 62
xTEXTIN 30 320 220 20 '' QUITSOUND '' 200
gadid 63
xBUTTON 200 60 100 20 "Set Personal Vol."
guiopen SetVolume
xBUTTON 260 130 30 20 "Set"
ReqFile 0 0 200 400 "Choose pattern...." LOAD GuiPattern PLAYGUI:SYS/Patterns/
Update OptionConfig 60 '$GuiPattern'
xBUTTON 300 130 30 20 "Test"
ifexists FILE $GuiPattern
loadimage $GuiPattern TestPattern Workbench
guiopen ShowPattern
else
ezreq "Cannot find pattern! Maybe wrong path?" "Yep!" yep
endif
xBUTTON 260 200 30 20 "Set"
ReqFile 0 0 200 400 "Choose skin path..." DIR SKINSELECT #PLAYGUI:Skins/
Update OptionConfig 61 '$SKINSELECT'
xBUTTON 300 200 30 20 "Test"
ifexists DIR $SKINSELECT
assign Skins: $SKINSELECT
loadimage Skins:main.iff TestSkin Workbench
guiopen ShowSkin
else
ezreq "Cannot find skin!" "Ok" ok
endif
xBUTTON 260 280 30 20 "Set"
ReqFile 0 0 200 400 "Choose Startsound..." LOAD STARTSOUND PlayGUI:SYS/Sounds/
Update OptionConfig 62 '$STARTSOUND'
xBUTTON 300 280 30 20 "Test"
ifexists FILE $STARTSOUND
CLI 'C:run >NIL: $PLAY16PATH $STARTSOUND'
else
ezreq "Cannot find sound!" "I see!" see
endif
xBUTTON 260 320 30 20 "Set"
ReqFile 0 0 200 400 "Choose Quitsound..." LOAD QUITSOUND PLAYGUI:SYS/Sounds/
Update OptionConfig 63 '$QUITSOUND'
xBUTTON 300 320 30 20 "Test"
ifexists FILE $QUITSOUND
CLI 'C:run >NIL: $PLAY16PATH $QUITSOUND'
else
ezreq "Cannot find sound!" "I see!" see
endif
xBUTTON 10 380 80 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/OPTION.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON 100 380 70 20 "_USE"
THEME = NO
gosub OptionConfig ConfigUpdate
xBUTTON 180 380 70 20 "_OK"
THEME = NO
guiclose OptionConfig
guiopen Voreinstellung
xROUTINE ConfigUpdate
freeimage GuiPattern
loadimage $GuiPattern GuiPattern Workbench
gosub PlayGUI Wechsel
guiclose OptionConfig
guiopen Voreinstellung
xBUTTON 260 380 80 20 "_Create Theme"
guiopen ThemeCreate
;------------------------------------------
Newfile ShowPattern
WINBIG -1 -1 100 100 "SHOWING PATTERN..."
Wintype 11010000
WINBACKGROUND IMAGE TestPattern 0
xONCLOSE
guiclose ShowPattern
;-------------------------------------------------------------------
Newfile ShowSkin
WINBIG -1 -1 275 116 "SHOWING SKIN..."
wintype 11010000
image 0 0 TestSkin
xONCLOSE
guiclose ShowSkin
;-------------------------------------------------------------------
Newfile ThemeCreate
WINBIG -1 -1 280 110 "CREATE A THEME"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
xONCLOSE
guiclose SetVolume
CTEXT 10 10 "Enter name of Theme..." XHelvetica.font 11 2 -1 00011
xTEXTIN 10 40 260 20 '' Themename '' 100
xBUTTON 10 70 80 20 "Create"
guiopen Createprogress
CLI 'C:Makedir PlayGUI:Themes/$Themename'
CLI 'C:assign ThemeCreation: PlayGUI:Themes/$Themename'
CLI 'C:Makedir ThemeCreation:Skin'
CLI 'C:Makedir ThemeCreation:Pattern'
CLI 'C:Makedir ThemeCreation:Sounds'
Update Createprogress 1 20
Update Createprogress 2 "Created directories"
gosub ThemeCreate SavePatternNext
xROUTINE SavePatternNext
ifexists FILE $GuiPattern
gosub ThemeCreate SavePatternNow
else
ezreq "Pattern is missing! Cannot create theme!" "Bad!" bad
endif
xROUTINE SavePatternNow
CLI 'C:Copy $GuiPattern to ThemeCreation:Pattern/PGPattern'
Update Createprogress 1 40
Update Createprogress 2 "Saved pattern"
gosub ThemeCreate SaveThemeNextSkin
xROUTINE SaveThemeNextSkin
ifexists DIR $SKINSELECT
gosub ThemeCreate SaveThemeSkinNow
else
ezreq "Skin is missing! Cannot create theme!" "Too bad!" bady
endif
xROUTINE SaveThemeSkinNow
assign Skin: $SKINSELECT
CLI 'C:Copy Skin:main.iff to ThemeCreation:Skin/'
CLI 'C:Copy Skin:mod_bar to ThemeCreation:Skin/'
CLI 'C:Copy Skin:volume_bar to ThemeCreation:Skin/'
CLI 'C:Copy Skin:sample_bar to ThemeCreation:Skin/'
CLI 'C:Copy Skin:option_bar to ThemeCreation:Skin/'
Update Createprogress 1 60
Update Createprogress 2 "Saved skin elements"
gosub ThemeCreate SaveStartSoundNext
xROUTINE SaveStartSoundNext
ifexists FILE $STARTSOUND
gosub ThemeCreate SaveStartSoundNow
else
ezreq "Start sound is missing! Cannot create theme!" "Ok Ok!" ok
endif
xROUTINE SaveStartSoundNow
CLI 'C:Copy $STARTSOUND to ThemeCreation:Sounds/SoundStart'
Update Createprogress 1 80
Update Createprogress 2 "Saved start-sound"
gosub ThemeCreate SaveQuitSoundNext
xROUTINE SaveQuitSoundNext
ifexists FILE $QUITSOUND
gosub ThemeCreate SaveQuitSoundNow
else
ezreq "Quit sound is missing! Cannot create theme!" "Ok!" ok
endif
xROUTINE SaveQuitSoundNow
CLI 'C:Copy $QUITSOUND to ThemeCreation:Sounds/SoundEnd'
Update Createprogress 1 100
Update Createprogress 2 "Saved quit-sound, finishing..."
ezreq "Saved theme! Finished!" "Wow!" wow
guiquit Createprogress
xBUTTON 100 70 80 20 "HELP"
ezreq "Your settings will be used to create a theme in your THEMES dir!" "Ah!" ah
xBUTTON 190 70 80 20 "Ok"
guiclose ThemeCreate
;------------------------------------------------------------------
Newfile Createprogress
Winbig -1 -1 200 70 "Create progress..."
Wintype 11010000
VARPATH PlayGUI
GAUGE -1 40 150 20 OUT BUTTON 3 0 0
gadid 1
TEXT -1 10 150 20 "" 35 BOX
gadid 2
;-------------------------------------------------------------------
Newfile SetVolume
WINBIG -1 -1 50 150 "Set Volume"
wintype 10000000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
xONCLOSE
guiclose SetVolume
xVSLIDER 15 10 20 100 '' vol2 0 64 0 ''
Update SetVolume 70 '$vol2'
TEXT 10 120 30 20 '' 24 BOX
gadid 70
;----------------------------------------------------------------
Newfile mpgconfig
WINBIG -1 -1 420 200 "MPEGA Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image 349 151 mpgfx
image 0 0 mpegagfx
xONCLOSE
guiclose mpgconfig
guiopen Voreinstellung
xAREA 321 15 70 10 BOX
CLI 'run >NIL: $YAMPATH mailto playgui@gmx.net subject PlayGUI QUIET'
CTEXT 30 62 "Frequenzy" XHelvetica.font 11 2 -1 00011
CTEXT 30 87 "AHI ID" XHelvetica.font 11 2 -1 00011
CTEXT 30 112 "Audiobuffer" XHelvetica.font 11 2 -1 00011
CTEXT 240 62 "Quality" XHelvetica.font 11 2 -1 00011
CTEXT 240 87 "Filter" XHelvetica.font 11 2 -1 00011
CTEXT 240 112 "Buffer size" XHelvetica.font 11 2 -1 00011
BOX 10 50 190 90 IN BUTTON
BOX 220 50 190 90 IN BUTTON
xHSLIDER 100 110 50 20 '' audiobuffer 1 300 1 ''
Update mpgconfig 1 '$audiobuffer sec'
xHSLIDER 300 110 50 20 '' buffersize 16 1000 1 ''
Update mpgconfig 6 '$buffersize KB'
xTEXTIN 100 85 80 20 '' number '' 30
gadid 5
TEXT 160 110 40 20 '' 24 NOBOX
gadid 1
TEXT 360 110 40 20 '' 24 NOBOX
gadid 6
xCHECKBOX 300 85 20 20 "" audiofilter "1" "0" OFF
gadid 2
xCYCLER 300 60 80 20 "" quality
CSTR "bad" 0
CSTR "good" 1
CSTR "best" 2
gadid 3
xCYCLER 100 60 80 20 "" freq
CSTR "bad" 4
CSTR "good" 2
CSTR "best" 1
gadid 4
xBUTTON 10 165 50 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/MPG.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON -1 165 50 20 "_OK"
guiclose mpgconfig
guiopen Voreinstellung
;---------------------------------------------------------------------
Newfile GMPlayconfig
WINBIG -1 -1 460 200 "GMPlay Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image 0 0 midigfx
xONCLOSE
guiclose GMPlayconfig
guiopen Voreinstellung
CTEXT 30 62 "Frequenzy" XHelvetica.font 11 2 -1 00011
CTEXT 30 87 "Priority" XHelvetica.font 11 2 -1 00011
CTEXT 30 112 "Buffers" XHelvetica.font 11 2 -1 00011
CTEXT 270 62 "Volume" XHelvetica.font 11 2 -1 00011
CTEXT 270 87 "Filter" XHelvetica.font 11 2 -1 00011
CTEXT 270 112 "Polyphony" XHelvetica.font 11 2 -1 00011
BOX 10 50 210 90 IN BUTTON
BOX 240 50 210 90 IN BUTTON
xCYCLER 100 60 80 20 "" gmfreq
CSTR "28867" 28867
CSTR "44000" 44000
CSTR "80000" 80000
gadid 3
xHSLIDER 330 60 60 20 '' gmvol 0 64 0 ''
Update GMPlayconfig 4 '$gmvol Vol'
xHSLIDER 100 110 60 20 '' gmbuffer 16 1024 16 ''
Update GMPlayconfig 1 '$gmbuffer KB'
xCYCLER 100 85 80 20 "" gmpriority
CSTR "-1" -1
CSTR "0" 0
CSTR "1" 1
gadid 5
xHSLIDER 330 110 60 20 '' gmpoly 8 64 8 ''
Update GMPlayconfig 6 '$gmpoly'
TEXT 170 110 40 20 '' 24 NOBOX
gadid 1
xCHECKBOX 330 85 20 20 "" gmfilter "FILTER" "NOFILTER" OFF
gadid 2
TEXT 400 60 40 20 '' 24 NOBOX
gadid 4
TEXT 400 110 40 20 '' 24 NOBOX
gadid 6
xBUTTON 10 165 50 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/GMPlay.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON -1 165 50 20 "_OK"
guiclose GMPlayconfig
guiopen Voreinstellung
;----------------------------------------------------------------
Newfile P16Config
WINBIG -1 -1 286 185 "Play16 Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image 0 0 P16gfx
xONCLOSE
guiclose P16Config
guiopen Voreinstellung
xAREA 200 2 80 10 BOX
CLI 'run >NIL: $BROWSERPATH http://narr.tsx.org'
CTEXT 30 62 "LOOP" XHelvetica.font 11 2 -1 00011
CTEXT 30 87 "FILTER" XHelvetica.font 11 2 -1 00011
CTEXT 30 112 "AUTOPLAY" XHelvetica.font 11 2 -1 00011
BOX 10 50 130 90 IN BUTTON
BOX 145 50 130 90 IN BUTTON
xBUTTON 160 60 100 20 "Set loop numbers"
Update ChangeLoop 1 'Loops:$P16LOOP'
guiopen ChangeLoop
xBUTTON 160 85 100 20 "Set sample buffer"
Update Sambuff 1 'Buffer:$SAMPLEBUFFER'
guiopen Sambuff
xCYCLER 160 110 100 20 "" OUTPUT
CSTR "Paula 8bit" Paula8
CSTR "Paula 14bit" Paula14
CSTR "Paula 14bitCal." Paula14c
CSTR "MPro" MPro
CSTR "AHI" AHI
gadid 4
xCHECKBOX 90 60 20 20 "" ASKP16LOOP "0" "1" OFF
gadid 1
if $ASKP16LOOP = 0
P16LOOP = 0
elseif $ASKP16LOOP = 1
P16LOOP = 1
endif
xCHECKBOX 90 85 20 20 "" P16FILTER "ON" "OFF" OFF
gadid 2
xCHECKBOX 90 110 20 20 "" SAMAUTO "ON" "OFF" OFF
gadid 3
xBUTTON 10 155 50 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/P16.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON -1 155 50 20 "_OK"
guiclose P16Config
guiopen Voreinstellung
;----------------------------------------------------------------
Newfile Themes
WINBIG -1 -1 260 240 "Themes Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image -1 5 themesgfx
xONCLOSE
guiclose Themes
guiopen Voreinstellung
CTEXT 20 60 "Choose Theme..." XHelvetica.font 11 2 -1 00011
BOX 10 50 240 100 IN BUTTON
GAUGE 10 160 240 20 OUT BUTTON 3 0 0
gadid 100
xBUTTON 80 115 100 20 "Preview"
ifexists DIR $THEMEPATH
assign Themes: $THEMEPATH
gosub Themes OpenPattern
else
ezreq "Cannot find theme dir!" "Ok" ok
endif
xRoutine OpenPattern
ifexists FILE Themes:Pattern/PGpattern
loadimage Themes:Pattern/PGpattern PrevPattern Workbench
Update Themes 100 25
gosub Themes OpenSkin
else
ezReq "Cannot find theme element!" "Ok" ok
endif
xROUTINE OpenSkin
ifexists FILE Themes:Skin/main.iff
loadimage Themes:Skin/main.iff prevskin Workbench
Update Themes 100 50
gosub Themes OpenQuitSound
else
ezreq "Cannot find skin!" "Ok" ok
endif
xROUTINE OpenQuitSound
ifexists FILE Themes:Sounds/SoundEnd
Update Themes 100 75
gosub Themes OpenStartSound
else
ezreq "Cannot find quit sound" "Ok" ok
endif
xROUTINE OpenStartSound
ifexists FILE Themes:Sounds/SoundStart
Update Themes 100 100
guiopen Preview
else
ezreq "Cannot find start sound!" "Ok" ok
endif
xTEXTIN 20 85 160 20 '' THEMEPATH '' 200
gadid 80
xBUTTON 190 85 50 20 "Set"
ReqFile 0 0 200 400 "Choose theme dir..." DIR THEMEPATH #PLAYGUI:Themes/
Update Themes 80 '$THEMEPATH'
xBUTTON 10 200 60 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/THEMES.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON 100 200 60 20 "_USE"
gosub PlayGUI OpenTheme
guiclose Themes
guiopen Voreinstellung
xBUTTON 190 200 60 20 "_OK"
THEME = NO
guiclose Themes
guiopen Voreinstellung
;----------------------------------------------------------------
Newfile Preview
WINBIG -1 -1 275 240 "PREVIEW"
wintype 11010000
WINBACKGROUND IMAGE PrevPattern 0
VARPATH PlayGUI
xONLOAD
image 0 0 prevskin
xButton 5 200 130 20 "Test Startsound"
CLI 'C:run >NIL: $PLAY16PATH Themes:Sounds/SoundStart'
xButton 140 200 130 20 "Test Quitsound"
CLI 'C:run >NIL: $PLAY16PATH Themes:Sounds/SoundEnd'
xONCLOSE
freesound prevend
freesound prevstart
freeimage prevskin
freeimage PrevPattern
guiclose Preview
;------------------------------------------------------------
Newfile PlugSet
WINBIG -1 -1 270 150 "PlugIn Config"
wintype 11010000
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
image -1 5 plugingfx
xBUTTON 235 50 20 20 "<"
ReqFile 0 0 200 400 "Choose plone path..." LOAD PLONEPATH RAM:
Update PlugSet 1 $PLONEPATH
xBUTTON 235 75 20 20 "<"
ReqFile 0 0 200 400 "Choose skinner path..." LOAD SKINNERPATH RAM:
Update PlugSet 2 $SKINNERPATH
CTEXT 10 50 "PLONE path" XHelvetica.font 11 2 -1 00011
CTEXT 10 75 "SKINNER path" XHelvetica.font 11 2 -1 00011
XTEXTIN 90 50 140 20 '' PLONEPATH '' 200
gadid 1
XTEXTIN 90 75 140 20 '' SKINNERPATH '' 200
gadid 2
xBUTTON -1 120 40 20 "_OK"
guiclose PlugSet
guiopen Voreinstellung
;----------------------------------------------------------------
Newfile PathConfig
WINBIG -1 -1 575 280 "Path Config"
wintype 11010001
WINBACKGROUND IMAGE GuiPattern 0
VARPATH PlayGUI
xONCLOSE
guiclose PathConfigConfig
guiopen Voreinstellung
CTEXT 10 240 "* Select PATH + FILE here" XHelvetica.font 11 2 -1 00011
CText 17 12 "Path Config" XHelvetica.font 11 2 -1 00011
Attr RESIZE 0000
BOX 11 10 100 21 OUT BUTTON
Attr RESIZE 0000
BOX 10 30 555 190 IN BUTTON
xBUTTON 255 40 20 20 "<"
ReqFile 0 0 200 400 "Choose hippo path..." LOAD HIPPOPATH $HIPPOPATH
Update PathConfig 50 $HIPPOPATH
xBUTTON 255 65 20 20 "<"
ReqFile 0 0 200 400 "Choose play16 path..." LOAD PLAY16PATH $PLAY16PATH
Update PathConfig 51 $PLAY16PATH
xBUTTON 255 90 20 20 "<"
ReqFile 0 0 200 400 "Choose mpega path..." LOAD MPEGAPATH $MPEGAPATH
Update PathConfig 52 $MPEGAPATH
xBUTTON 255 115 20 20 "<"
ReqFile 0 0 200 400 "Choose GMPlay path..." LOAD GMPLAYPATH $GMPLAYPATH
Update PathConfig 62 $GMPLAYPATH
xBUTTON 255 140 20 20 "<"
ReqFile 0 0 200 400 "Choose mod path..." LOAD MODPATH $MODPATH
Update PathConfig 53 $MODPATH
xBUTTON 255 165 20 20 "<"
ReqFile 0 0 200 400 "Choose sample path..." LOAD SAMPLEPATH $SAMPLEPATH
Update PathConfig 54 $SAMPLEPATH
xBUTTON 255 190 20 20 "<"
ReqFile 0 0 200 400 "Choose launch path..." LOAD LAUNCHPATH $LAUNCHPATH
Update PathConfig 55 $LAUNCHPATH
xBUTTON 535 40 20 20 "<"
ReqFile 0 0 200 400 "Choose scope path..." LOAD SCOPEPATH $SCOPEPATH
Update PathConfig 56 $SCOPEPATH
xBUTTON 535 65 20 20 "<"
ReqFile 0 0 200 400 "Choose mod copy path..." LOAD COPYPATH $COPYPATH
Update PathConfig 57 $COPYPATH
xBUTTON 535 90 20 20 "<"
ReqFile 0 0 200 400 "Choose mod copy path..." LOAD MPGCOPYPATH $MPGCOPYPATH
Update PathConfig 58 $MPGCOPYPATH
xBUTTON 535 115 20 20 "<"
ReqFile 0 0 200 400 "Choose sample copy path..." LOAD COPYPATH2 $COPYPATH2
Update PathConfig 59 $COPYPATH2
xBUTTON 535 140 20 20 "<"
ReqFile 0 0 200 400 "Choose MIDI copy path..." LOAD MIDICOPYPATH $MIDICOPYPATH
Update PathConfig 63 $MIDICOPYPATH
xBUTTON 535 165 20 20 "<"
ReqFile 0 0 200 400 "Choose browser path..." LOAD BROWSERPATH $BROWSERPATH
Update PathConfig 61 $BROWSERPATH
xBUTTON 535 190 20 20 "<"
ReqFile 0 0 200 400 "Choose yam path..." LOAD YAMPATH $YAMPATH
Update PathConfig 60 $YAMPATH
CTEXT 20 43 "HIPPO path *" XHelvetica.font 11 2 -1 00011
CTEXT 20 68 "Play16 path *" XHelvetica.font 11 2 -1 00011
CTEXT 20 93 "MPEGA path *" XHelvetica.font 11 2 -1 00011
CTEXT 20 118 "GMPLAY path *" XHelvetica.font 11 2 -1 00011
CTEXT 20 143 "MOD path" XHelvetica.font 11 2 -1 00011
CTEXT 20 168 "SAMPLE path" XHelvetica.font 11 2 -1 00011
CTEXT 20 193 "LAUNCH path" XHelvetica.font 11 2 -1 00011
CTEXT 290 43 "SCOPE path" XHelvetica.font 11 2 -1 00011
CTEXT 290 68 "MODCOPY path" XHelvetica.font 11 2 -1 00011
CTEXT 290 93 "MPGCOPY path" XHelvetica.font 11 2 -1 00011
CTEXT 290 118 "SAMPLECOPY path" XHelvetica.font 11 2 -1 00011
CTEXT 290 143 "MIDICOPY path" XHelvetica.font 11 2 -1 00011
CTEXT 290 168 "BROWSER path *" XHelvetica.font 11 2 -1 00011
CTEXT 290 193 "YAM path *" XHelvetica.font 11 2 -1 00011
XTEXTIN 110 40 140 20 '' HIPPOPATH '' 200
gadid 50
XTEXTIN 110 65 140 20 '' PLAY16PATH '' 200
gadid 51
XTEXTIN 110 90 140 20 '' MPEGAPATH '' 200
gadid 52
XTEXTIN 110 140 140 20 '' MODPATH '' 200
gadid 53
XTEXTIN 110 165 140 20 '' SAMPLEPATH '' 200
gadid 54
XTEXTIN 110 190 140 20 '' LAUNCHPATH '' 200
gadid 55
XTEXTIN 390 40 140 20 '' SCOPEPATH '' 200
gadid 56
XTEXTIN 390 65 140 20 '' COPYPATH '' 200
gadid 57
XTEXTIN 390 90 140 20 '' MPGCOPYPATH '' 200
gadid 58
XTEXTIN 390 115 140 20 '' COPYPATH2 '' 200
gadid 59
XTEXTIN 390 190 140 20 '' YAMPATH '' 200
gadid 60
XTEXTIN 390 165 140 20 '' BROWSERPATH '' 200
gadid 61
XTEXTIN 110 115 140 20 '' GMPLAYPATH '' 200
gadid 62
XTEXTIN 390 140 140 20 '' MIDICOPYPATH '' 200
gadid 63
xBUTTON 525 240 40 20 "HELP"
ifexists FILE SYS:Utilities/Multiview
CLI 'C:run >NIL: SYS:Utilities/Multiview PlayGUI:Docs/Help/PATHS.help'
else
ezreq "You need Multiview in SYS:Utilities!" "Oh my god!" god
endif
xBUTTON -1 240 40 20 "_OK"
guiclose PathConfig
guiopen Voreinstellung
xRoutine SavePaths
SET BUFFERS 4000
.PlayGUIconfig = 'G4C\n\nxOnLoad\n'
appvar .PlayGUIconfig '\nPlayGUI/HIPPOPATH = "$HIPPOPATH"'
appvar .PlayGUIconfig '\nPlayGUI/PLAY16PATH = "$PLAY16PATH"'
appvar .PlayGUIconfig '\nPlayGUI/MODPATH = "$MODPATH"'
appvar .PlayGUIconfig '\nPlayGUI/SAMPLEPATH = "$SAMPLEPATH"'
appvar .PlayGUIconfig '\nPlayGUI/SKINSELECT = "$SKINSELECT"'
appvar .PlayGUIconfig '\nPlayGUI/PLONEPATH = "$PLONEPATH"'
appvar .PlayGUIconfig '\nPlayGUI/LAUNCHPATH = "$LAUNCHPATH"'
appvar .PlayGUIconfig '\nPlayGUI/SCOPEPATH = "$SCOPEPATH"'
appvar .PlayGUIconfig '\nPlayGUI/COPYPATH = "$COPYPATH"'
appvar .PlayGUIconfig '\nPlayGUI/COPYPATH2 = "$COPYPATH2"'
appvar .PlayGUIconfig '\nPlayGUI/YAMPATH = "$YAMPATH"'
appvar .PlayGUIconfig '\nPlayGUI/BROWSERPATH = "$BROWSERPATH"'
appvar .PlayGUIconfig '\nPlayGUI/AUTOPLAY = "$AUTOPLAY"'
appvar .PlayGUIconfig '\nPlayGUI/PLONESTART = "$PLONESTART"'
appvar .PlayGUIconfig '\nPlayGUI/STARTMODINFO = "$STARTMODINFO"'
appvar .PlayGUIconfig '\nPlayGUI/P16LOOP = "$P16LOOP"'
appvar .PlayGUIconfig '\nPlayGUI/P16FILTER = "$P16FILTER"'
appvar .PlayGUIconfig '\nPlayGUI/vol2 = "$vol2"'
appvar .PlayGUIconfig '\nPlayGUI/GuiPattern = "$GuiPattern"'
appvar .PlayGUIconfig '\nPlayGUI/STARTSOUND = "$STARTSOUND"'
appvar .PlayGUIconfig '\nPlayGUI/QUITSOUND = "$QUITSOUND"'
appvar .PlayGUIconfig '\nPlayGUI/THEME = "$THEME"'
appvar .PlayGUIconfig '\nPlayGUI/THEMEPATH = "$THEMEPATH"'
appvar .PlayGUIconfig '\nPlayGUI/TQUITSOUND = "$TQUITSOUND"'
appvar .PlayGUIconfig '\nPlayGUI/TSTARTSOUND = "$TSTARTSOUND"'
appvar .PlayGUIconfig '\nPlayGUI/SAMAUTO = "$SAMAUTO"'
appvar .PlayGUIconfig '\nPlayGUI/SKINNERPATH = "$SKINNERPATH"'
appvar .PlayGUIconfig '\nPlayGUI/SAMPLEBUFFER = "$SAMPLEBUFFER"'
appvar .PlayGUIconfig '\nPlayGUI/OUTPUT = "$OUTPUT"'
appvar .PlayGUIconfig '\nPlayGUI/AUTOSAVE = "$AUTOSAVE"'
appvar .PlayGUIconfig '\nPlayGUI/MPEGAPATH = "$MPEGAPATH"'
appvar .PlayGUIconfig '\nPlayGUI/MPGCOPYPATH = "$MPGCOPYPATH"'
appvar .PlayGUIconfig '\nPlayGUI/freq = "$freq"'
appvar .PlayGUIconfig '\nPlayGUI/quality = "$quality"'
appvar .PlayGUIconfig '\nPlayGUI/number = "$number"'
appvar .PlayGUIconfig '\nPlayGUI/audiofilter = "$audiofilter"'
appvar .PlayGUIconfig '\nPlayGUI/audiobuffer = "$audiobuffer"'
appvar .PlayGUIconfig '\nPlayGUI/buffersize = "$buffersize"'
appvar .PlayGUIconfig '\nPlayGUI/STARTMODULE = "$STARTMODULE"'
appvar .PlayGUIconfig '\nPlayGUI/STARTMOD = "$STARTMOD"'
appvar .PlayGUIconfig '\nPlayGUI/STARTABOUT = "$STARTABOUT"'
appvar .PlayGUIconfig '\nPlayGUI/GMPLAYPATH = "$GMPLAYPATH"'
appvar .PlayGUIconfig '\nPlayGUI/MIDICOPYPATH = "$MIDICOPYPATH"'
appvar .PlayGUIconfig '\nPlayGUI/gmfreq = "$gmfreq"'
appvar .PlayGUIconfig '\nPlayGUI/gmvol = "$gmvol"'
appvar .PlayGUIconfig '\nPlayGUI/gmbuffer = "$gmbuffer"'
appvar .PlayGUIconfig '\nPlayGUI/gmpoly = "$gmpoly"'
appvar .PlayGUIconfig '\nPlayGUI/gmpriority = "$gmpriority"'
appvar .PlayGUIconfig '\nPlayGUI/gmfilter = "$gmfilter"'
appvar .PlayGUIconfig '\nPlayGUI/playtimer = "$playtimer"'
appvar .PlayGUIconfig '\nGuiQuit #This'
copy env:.PlayGUIconfig PLAYGUI:SYS/PlayGUIconfig
ezreq "Config saved!" "Thanx!" thanx